diff options
author | v01d <v01d@yandex-team.ru> | 2022-02-10 16:49:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:40 +0300 |
commit | 5c6482e8c13dfaad60e604f0474606a0ec153b1d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util | |
parent | fa8b0420162dd36d4f569fdc3f63da0bef8bb8c7 (diff) | |
download | ydb-5c6482e8c13dfaad60e604f0474606a0ec153b1d.tar.gz |
Restoring authorship annotation for <v01d@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/thread/pool.h | 6 | ||||
-rw-r--r-- | util/thread/pool_ut.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/util/thread/pool.h b/util/thread/pool.h index dbeadc58e4..d1ea3a67cb 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 3bbde3d36e..893770d0c4 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() { |