diff options
author | levong <levong@yandex-team.ru> | 2022-02-10 16:51:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:45 +0300 |
commit | dd80ec62c76c5c848197b5b7468e6e215e59d715 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb | |
parent | 5a1d870a044e6a0fc52fe457c2a6055181cf7438 (diff) | |
download | ydb-dd80ec62c76c5c848197b5b7468e6e215e59d715.tar.gz |
Restoring authorship annotation for <levong@yandex-team.ru>. Commit 2 of 2.
-rw-r--r-- | util/datetime/systime.cpp | 2 | ||||
-rw-r--r-- | util/datetime/systime.h | 2 | ||||
-rw-r--r-- | util/system/defaults.h | 2 | ||||
-rw-r--r-- | util/system/event.cpp | 2 | ||||
-rw-r--r-- | util/system/event.h | 2 | ||||
-rw-r--r-- | util/system/filemap.h | 2 | ||||
-rw-r--r-- | util/system/sem.cpp | 12 |
7 files changed, 12 insertions, 12 deletions
diff --git a/util/datetime/systime.cpp b/util/datetime/systime.cpp index 9ebc54ac9a..6ee7e8fc6e 100644 --- a/util/datetime/systime.cpp +++ b/util/datetime/systime.cpp @@ -84,7 +84,7 @@ time_t TimeGM(const struct tm* t) { unsigned long secs = days * 86400ul + t->tm_hour * 3600 + t->tm_min * 60 + t->tm_sec; return (time_t)secs; } - + struct tm* GmTimeR(const time_t* timer, struct tm* tmbuf) { static const int _ytab[2][12] = { {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, diff --git a/util/datetime/systime.h b/util/datetime/systime.h index 6ec445dc7f..491d36e802 100644 --- a/util/datetime/systime.h +++ b/util/datetime/systime.h @@ -11,7 +11,7 @@ struct tm* GmTimeR(const time_t* timer, struct tm* tmbuf); // safe version of ctime, convinient version of ctime_r TString CTimeR(const time_t* timer); -#ifdef _win_ +#ifdef _win_ #include <util/system/winint.h> #include <winsock2.h> diff --git a/util/system/defaults.h b/util/system/defaults.h index bc55fd596c..dcd7abea38 100644 --- a/util/system/defaults.h +++ b/util/system/defaults.h @@ -75,7 +75,7 @@ #include "compiler.h" -#ifdef _win_ +#ifdef _win_ #include <malloc.h> #elif defined(_sun_) #include <alloca.h> diff --git a/util/system/event.cpp b/util/system/event.cpp index 6a03c64cc0..79b3cdb291 100644 --- a/util/system/event.cpp +++ b/util/system/event.cpp @@ -8,7 +8,7 @@ #include "mutex.h" #include "condvar.h" -#ifdef _win_ +#ifdef _win_ #include "winint.h" #endif diff --git a/util/system/event.h b/util/system/event.h index c3ff35f758..cab2fc478a 100644 --- a/util/system/event.h +++ b/util/system/event.h @@ -26,7 +26,7 @@ public: void Reset() noexcept; void Signal() noexcept; - + /* * return true if signaled, false if timed out. */ diff --git a/util/system/filemap.h b/util/system/filemap.h index cf9e2f30d7..11be64bff4 100644 --- a/util/system/filemap.h +++ b/util/system/filemap.h @@ -323,7 +323,7 @@ private: void* Ptr_ = nullptr; size_t Size_ = 0; bool Shared_ = false; -#ifdef _win_ +#ifdef _win_ void* Mapping_ = nullptr; #endif }; diff --git a/util/system/sem.cpp b/util/system/sem.cpp index 34d0b0da93..4a93b903b5 100644 --- a/util/system/sem.cpp +++ b/util/system/sem.cpp @@ -1,6 +1,6 @@ #include "sem.h" -#ifdef _win_ +#ifdef _win_ #include <malloc.h> #elif defined(_sun) #include <alloca.h> @@ -48,7 +48,7 @@ union semun arg; namespace { class TSemaphoreImpl { private: -#ifdef _win_ +#ifdef _win_ using SEMHANDLE = HANDLE; #else #ifdef USE_SYSV_SEMAPHORES @@ -105,7 +105,7 @@ namespace { } inline ~TSemaphoreImpl() { -#ifdef _win_ +#ifdef _win_ ::CloseHandle(Handle); #else #ifdef USE_SYSV_SEMAPHORES @@ -120,7 +120,7 @@ namespace { } inline void Release() noexcept { -#ifdef _win_ +#ifdef _win_ ::ReleaseSemaphore(Handle, 1, 0); #else #ifdef USE_SYSV_SEMAPHORES @@ -136,7 +136,7 @@ namespace { //The UNIX semaphore object does not support a timed "wait", and //hence to maintain consistancy, for win32 case we use INFINITE or 0 timeout. inline void Acquire() noexcept { -#ifdef _win_ +#ifdef _win_ Y_VERIFY(::WaitForSingleObject(Handle, INFINITE) == WAIT_OBJECT_0, "can not acquire semaphore"); #else #ifdef USE_SYSV_SEMAPHORES @@ -150,7 +150,7 @@ namespace { } inline bool TryAcquire() noexcept { -#ifdef _win_ +#ifdef _win_ // zero-second time-out interval // WAIT_OBJECT_0: current free count > 0 // WAIT_TIMEOUT: current free count == 0 |