diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-05-13 00:43:42 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-05-13 00:43:42 +0300 |
commit | 3c040817dad4af3668379518476ee067b6927edc (patch) | |
tree | 56da9ca0a2f649c0be238c95d4edaab1605344b3 /library/cpp | |
parent | dbc652d95db911333897366de29c86c8293774a9 (diff) | |
download | ydb-3c040817dad4af3668379518476ee067b6927edc.tar.gz |
intermediate changes
ref:1c9de0624395f09c68379be8d3baac9ee51920f3
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/getopt/small/modchooser.h | 2 | ||||
-rw-r--r-- | library/cpp/sighandler/async_signals_handler.cpp | 4 | ||||
-rw-r--r-- | library/cpp/threading/future/subscription/README.md | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/getopt/small/modchooser.h b/library/cpp/getopt/small/modchooser.h index 0a8de6d50b5..987353e3d1d 100644 --- a/library/cpp/getopt/small/modchooser.h +++ b/library/cpp/getopt/small/modchooser.h @@ -36,7 +36,7 @@ typedef void (*TVersionHandlerPtr)(); /*! Main class for handling different modes in single tool. * * You can add modes for this class, use autogenerated help with - * list of modes and automaticly call necessary mode in run(). + * list of modes and automatically call necessary mode in run(). * * In first argv element mode get joined by space tool name and * current mode name. diff --git a/library/cpp/sighandler/async_signals_handler.cpp b/library/cpp/sighandler/async_signals_handler.cpp index 00ce1c18fbd..13f9931e748 100644 --- a/library/cpp/sighandler/async_signals_handler.cpp +++ b/library/cpp/sighandler/async_signals_handler.cpp @@ -192,10 +192,10 @@ namespace { } void SetAsyncSignalHandler(int signum, TAutoPtr<TEventHandler> handler) { - static TAtomic lock; + static TAdaptiveLock lock; if (Y_UNLIKELY(SIGNALS_HANDLER == nullptr)) { - TGuard<TAtomic> dnd(lock); + TGuard dnd(lock); if (SIGNALS_HANDLER == nullptr) { // NEVERS GETS DESTROYED diff --git a/library/cpp/threading/future/subscription/README.md b/library/cpp/threading/future/subscription/README.md index 62c7e1303e4..6f547926854 100644 --- a/library/cpp/threading/future/subscription/README.md +++ b/library/cpp/threading/future/subscription/README.md @@ -86,7 +86,7 @@ The subscription manager could be used in the following way: ... ``` - Futures could be passed to Subscribe method either via an initializer_list or via a standard container like vector or list. Subscribe method accept an optional boolean parameter revertOnSignaled. If the parameter is false (default) then all suscriptions will be performed regardless of the futures states and the returned vector will have a subscription id for each future (even if callback has been executed synchronously for some futures). Otherwise the method will stop on the first signaled future (the callback will be synchronously called for it), no suscriptions will be created and an empty vector will be returned. + Futures could be passed to Subscribe method either via an initializer_list or via a standard container like vector or list. Subscribe method accept an optional boolean parameter revertOnSignaled. If the parameter is false (default) then all subscriptions will be performed regardless of the futures states and the returned vector will have a subscription id for each future (even if callback has been executed synchronously for some futures). Otherwise the method will stop on the first signaled future (the callback will be synchronously called for it), no subscriptions will be created and an empty vector will be returned. 4. Unsubscribe multiple subscriptions: |