aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/condvar.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/condvar.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/condvar.cpp')
-rw-r--r--util/system/condvar.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/condvar.cpp b/util/system/condvar.cpp
index 62f3d22356..2eeb720f9f 100644
--- a/util/system/condvar.cpp
+++ b/util/system/condvar.cpp
@@ -28,7 +28,7 @@ namespace {
public:
inline ~TCondVarImpl() {
- Y_ASSERT(Events_.Empty());
+ Y_ASSERT(Events_.Empty());
}
inline void Signal() noexcept {
@@ -81,25 +81,25 @@ class TCondVar::TImpl: public TCondVarImpl {
class TCondVar::TImpl {
public:
inline TImpl() {
- if (pthread_cond_init(&Cond_, nullptr)) {
+ if (pthread_cond_init(&Cond_, nullptr)) {
ythrow yexception() << "can not create condvar(" << LastSystemErrorText() << ")";
}
}
inline ~TImpl() {
int ret = pthread_cond_destroy(&Cond_);
- Y_VERIFY(ret == 0, "pthread_cond_destroy failed: %s", LastSystemErrorText(ret));
+ Y_VERIFY(ret == 0, "pthread_cond_destroy failed: %s", LastSystemErrorText(ret));
}
inline void Signal() noexcept {
int ret = pthread_cond_signal(&Cond_);
- Y_VERIFY(ret == 0, "pthread_cond_signal failed: %s", LastSystemErrorText(ret));
+ Y_VERIFY(ret == 0, "pthread_cond_signal failed: %s", LastSystemErrorText(ret));
}
inline bool WaitD(TMutex& lock, TInstant deadLine) noexcept {
if (deadLine == TInstant::Max()) {
int ret = pthread_cond_wait(&Cond_, (pthread_mutex_t*)lock.Handle());
- Y_VERIFY(ret == 0, "pthread_cond_wait failed: %s", LastSystemErrorText(ret));
+ Y_VERIFY(ret == 0, "pthread_cond_wait failed: %s", LastSystemErrorText(ret));
return true;
} else {
struct timespec spec;
@@ -111,7 +111,7 @@ public:
int ret = pthread_cond_timedwait(&Cond_, (pthread_mutex_t*)lock.Handle(), &spec);
- Y_VERIFY(ret == 0 || ret == ETIMEDOUT, "pthread_cond_timedwait failed: %s", LastSystemErrorText(ret));
+ Y_VERIFY(ret == 0 || ret == ETIMEDOUT, "pthread_cond_timedwait failed: %s", LastSystemErrorText(ret));
return ret == 0;
}
@@ -119,7 +119,7 @@ public:
inline void BroadCast() noexcept {
int ret = pthread_cond_broadcast(&Cond_);
- Y_VERIFY(ret == 0, "pthread_cond_broadcast failed: %s", LastSystemErrorText(ret));
+ Y_VERIFY(ret == 0, "pthread_cond_broadcast failed: %s", LastSystemErrorText(ret));
}
private: