aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorv01d <v01d@yandex-team.ru>2022-02-10 16:49:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:40 +0300
commitfa8b0420162dd36d4f569fdc3f63da0bef8bb8c7 (patch)
treeecec7ec14d9261b76724eeb69ab158c45a970dc4 /util
parentac559bd4bb6b11b17dce999cf58c05e08f6087a2 (diff)
downloadydb-fa8b0420162dd36d4f569fdc3f63da0bef8bb8c7.tar.gz
Restoring authorship annotation for <v01d@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/thread/pool.h6
-rw-r--r--util/thread/pool_ut.cpp8
2 files changed, 7 insertions, 7 deletions
diff --git a/util/thread/pool.h b/util/thread/pool.h
index d1ea3a67cb..dbeadc58e4 100644
--- a/util/thread/pool.h
+++ b/util/thread/pool.h
@@ -5,7 +5,7 @@
#include <util/system/yassert.h>
#include <util/system/defaults.h>
-#include <util/generic/yexception.h>
+#include <util/generic/yexception.h>
#include <util/generic/ptr.h>
#include <util/generic/noncopyable.h>
#include <functional>
@@ -51,8 +51,8 @@ private:
};
class TThreadPoolException: public yexception {
-};
-
+};
+
template <class T>
class TThrFuncObj: public IObjectInQueue {
public:
diff --git a/util/thread/pool_ut.cpp b/util/thread/pool_ut.cpp
index 893770d0c4..3bbde3d36e 100644
--- a/util/thread/pool_ut.cpp
+++ b/util/thread/pool_ut.cpp
@@ -133,11 +133,11 @@ Y_UNIT_TEST_SUITE(TThreadPoolTest) {
UNIT_ASSERT_VALUES_EQUAL(added, false);
}
- Y_UNIT_TEST(TestSafeAddFuncThrows) {
- TFailAddQueue queue;
+ Y_UNIT_TEST(TestSafeAddFuncThrows) {
+ TFailAddQueue queue;
UNIT_CHECK_GENERATED_EXCEPTION(queue.SafeAddFunc([] {}), TThreadPoolException);
- }
-
+ }
+
Y_UNIT_TEST(TestFunctionNotCopied) {
struct TFailOnCopy {
TFailOnCopy() {