aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine/condvar.h
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:44 +0300
commit59e19371de37995fcb36beb16cd6ec030af960bc (patch)
treefa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/coroutine/engine/condvar.h
parent89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff)
downloadydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine/condvar.h')
-rw-r--r--library/cpp/coroutine/engine/condvar.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/coroutine/engine/condvar.h b/library/cpp/coroutine/engine/condvar.h
index ffceede6fa..ecfeab5b73 100644
--- a/library/cpp/coroutine/engine/condvar.h
+++ b/library/cpp/coroutine/engine/condvar.h
@@ -1,11 +1,11 @@
-#pragma once
-
-#include "events.h"
-#include "mutex.h"
+#pragma once
+#include "events.h"
+#include "mutex.h"
+
class TContCondVar {
public:
- int WaitD(TCont* current, TContMutex* mutex, TInstant deadline) {
+ int WaitD(TCont* current, TContMutex* mutex, TInstant deadline) {
mutex->UnLock();
const int ret = WaitQueue_.WaitD(current, deadline);
@@ -17,19 +17,19 @@ public:
return mutex->LockD(current, deadline);
}
- int WaitT(TCont* current, TContMutex* mutex, TDuration timeout) {
+ int WaitT(TCont* current, TContMutex* mutex, TDuration timeout) {
return WaitD(current, mutex, timeout.ToDeadLine());
}
- int WaitI(TCont* current, TContMutex* mutex) {
+ int WaitI(TCont* current, TContMutex* mutex) {
return WaitD(current, mutex, TInstant::Max());
}
- void Signal() noexcept {
+ void Signal() noexcept {
WaitQueue_.Signal();
}
- void BroadCast() noexcept {
+ void BroadCast() noexcept {
WaitQueue_.BroadCast();
}