diff options
| author | melkov <[email protected]> | 2022-02-10 16:48:14 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:14 +0300 | 
| commit | 2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/thread | |
| parent | 438546c8737d5c1fdeb31157dcf999717d930eec (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/thread')
| -rw-r--r-- | util/thread/pool.cpp | 2 | ||||
| -rw-r--r-- | util/thread/pool_ut.cpp | 14 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp index 506743da092..05fad02e9b9 100644 --- a/util/thread/pool.cpp +++ b/util/thread/pool.cpp @@ -662,7 +662,7 @@ namespace {  void IThreadPool::SafeAdd(IObjectInQueue* obj) {      Y_ENSURE_EX(Add(obj), TThreadPoolException() << TStringBuf("can not add object to queue"));  } -  +  void IThreadPool::SafeAddAndOwn(THolder<IObjectInQueue> obj) {      Y_ENSURE_EX(AddAndOwn(std::move(obj)), TThreadPoolException() << TStringBuf("can not add to queue and own"));  } diff --git a/util/thread/pool_ut.cpp b/util/thread/pool_ut.cpp index 628db06fed1..893770d0c47 100644 --- a/util/thread/pool_ut.cpp +++ b/util/thread/pool_ut.cpp @@ -186,10 +186,10 @@ Y_UNIT_TEST_SUITE(TThreadPoolTest) {              name = TThread::CurrentThreadName();          });          pool.Stop(); -        if (TThread::CanGetCurrentThreadName()) {  -            UNIT_ASSERT_EQUAL(name, expectedName);  -            UNIT_ASSERT_UNEQUAL(TThread::CurrentThreadName(), expectedName);  -        }  +        if (TThread::CanGetCurrentThreadName()) { +            UNIT_ASSERT_EQUAL(name, expectedName); +            UNIT_ASSERT_UNEQUAL(TThread::CurrentThreadName(), expectedName); +        }      }      Y_UNIT_TEST(TestFixedThreadName) { @@ -225,9 +225,9 @@ Y_UNIT_TEST_SUITE(TThreadPoolTest) {              });          }          pool.Stop(); -        if (TThread::CanGetCurrentThreadName()) {  -            UNIT_ASSERT_EQUAL(names, expectedNames);  -        }  +        if (TThread::CanGetCurrentThreadName()) { +            UNIT_ASSERT_EQUAL(names, expectedNames); +        }      }      Y_UNIT_TEST(TestEnumeratedThreadName) { | 
