summaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/thread_local/generic.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use generic thread-local value for kernel/groupattrs, crash context and ↵kulikov2025-11-281-5/+17
| | | | | | | | | | | | | eventlog scope - fix StdThreadLocalImpl -- make static state refcounted, there is no guarantee that static fields will outlive threads or TThreadLocalValues; - replace thread local values to generic local storage value in some places; - call runtime Init and replace local values factory; - don't disable NCurrentThreadEventlog for ytxx runtime, it should now work; - ensure generic local storage values are allocated after runtime init; - use function-scope static variables to prevent issues with order of construction and destruction; - basesearch now almost works with coroutines (with NProfile disabled). commit_hash:7fde81591b0dbc3a53b8d1cb11bb96930a2e9a80
* Switch generic tls to thread_local-based implkulikov2025-11-261-1/+1
| | | | | After this, it becomes possible to zerodiff replace thread\_local variables with generic local values. Replace default TThreadLocal with generic will lead to it's destruction on thread exit, but it seems to be more correct behavior (e.g., avoid leaks on thread pool restart). commit_hash:6e5a0908ca239c1bac3ce6ba47de9e53290d6211
* Generic thread (yt fiber, etc) local storagekulikov2025-11-181-0/+30
commit_hash:cc357d273b7ce5c911d194dd51fae5668877693c