diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/threading/task_scheduler/task_scheduler.h | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/task_scheduler/task_scheduler.h')
-rw-r--r-- | library/cpp/threading/task_scheduler/task_scheduler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/threading/task_scheduler/task_scheduler.h b/library/cpp/threading/task_scheduler/task_scheduler.h index e2381c2b38..df4da941a8 100644 --- a/library/cpp/threading/task_scheduler/task_scheduler.h +++ b/library/cpp/threading/task_scheduler/task_scheduler.h @@ -40,10 +40,10 @@ private: TWorkerThread* WaitingWorker = nullptr; }; - using TQueueType = TMultiMap<TInstant, TTaskHolder>; - using TQueueIterator = TQueueType::iterator; + using TQueueType = TMultiMap<TInstant, TTaskHolder>; + using TQueueIterator = TQueueType::iterator; private: - void ChangeDebugState(TWorkerThread* thread, const TString& state); + void ChangeDebugState(TWorkerThread* thread, const TString& state); void ChooseFromQueue(TQueueIterator& toWait); bool Wait(TWorkerThread* thread, TQueueIterator& toWait); @@ -52,12 +52,12 @@ private: bool IsStopped_ = false; TAtomic TaskCounter_ = 0; - TQueueType Queue_; + TQueueType Queue_; TCondVar CondVar_; TMutex Lock_; - TVector<TAutoPtr<TWorkerThread>> Workers_; + TVector<TAutoPtr<TWorkerThread>> Workers_; const size_t MaxTaskCount_; }; |