summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarcadia-devtools <[email protected]>2022-05-13 00:43:42 +0300
committerarcadia-devtools <[email protected]>2022-05-13 00:43:42 +0300
commit3c040817dad4af3668379518476ee067b6927edc (patch)
tree56da9ca0a2f649c0be238c95d4edaab1605344b3
parentdbc652d95db911333897366de29c86c8293774a9 (diff)
intermediate changes
ref:1c9de0624395f09c68379be8d3baac9ee51920f3
-rw-r--r--build/rules/flake8/migrations.yaml1
-rw-r--r--library/cpp/getopt/small/modchooser.h2
-rw-r--r--library/cpp/sighandler/async_signals_handler.cpp4
-rw-r--r--library/cpp/threading/future/subscription/README.md2
4 files changed, 4 insertions, 5 deletions
diff --git a/build/rules/flake8/migrations.yaml b/build/rules/flake8/migrations.yaml
index 5dc8906bac1..055223414d4 100644
--- a/build/rules/flake8/migrations.yaml
+++ b/build/rules/flake8/migrations.yaml
@@ -2085,7 +2085,6 @@ migrations:
- noc/aioalexandria
- noc/annlib/contrib/valkit
- noc/checkist/clients/python/swagger_client
- - noc/hbf-server
- noc/soft_pingers
- noc/yanet/yanetagent
- ofd/notifier/server/blueprints/monitoring
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: