aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/thread_local
diff options
context:
space:
mode:
authorsskvor <sskvor@yandex-team.com>2024-11-05 17:31:53 +0300
committersskvor <sskvor@yandex-team.com>2024-11-05 17:58:17 +0300
commit8e522d6580b57c8770f24e9f123e8f98d44de236 (patch)
tree43f5b2dabcbf8177087d484da0ca017e35167277 /library/cpp/threading/thread_local
parentfa502b3f4cb2583abbd2a5d849ad3b5d2fb6b28e (diff)
downloadydb-8e522d6580b57c8770f24e9f123e8f98d44de236.tar.gz
[libray/cpp/threading] Fix typo
commit_hash:f76f3edfa160fba90d0f8d594211fa35c6eb6077
Diffstat (limited to 'library/cpp/threading/thread_local')
-rw-r--r--library/cpp/threading/thread_local/thread_local.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/threading/thread_local/thread_local.h b/library/cpp/threading/thread_local/thread_local.h
index bb0d11347d..15cb43d37f 100644
--- a/library/cpp/threading/thread_local/thread_local.h
+++ b/library/cpp/threading/thread_local/thread_local.h
@@ -220,8 +220,8 @@ public:
, Pool_{0}
{}
- template <typename ...ConsturctArgs>
- T* Get(TThread::TId tid, ConsturctArgs&& ...args) {
+ template <typename ...ConstructArgs>
+ T* Get(TThread::TId tid, ConstructArgs&& ...args) {
TNode* head = Head_.load(std::memory_order_acquire);
for (TNode* node = head; node; node = node->Next) {
if (node->Key == tid) {
@@ -229,7 +229,7 @@ public:
}
}
- TNode* newNode = AllocateNode(tid, head, std::forward<ConsturctArgs>(args)...);
+ TNode* newNode = AllocateNode(tid, head, std::forward<ConstructArgs>(args)...);
while (!Head_.compare_exchange_weak(head, newNode, std::memory_order_release, std::memory_order_relaxed)) {
newNode->Next = head;
}