diff options
| author | Rye <rye@alchemyviewer.org> | 2025-11-02 01:05:40 -0500 |
|---|---|---|
| committer | Rye <rye@alchemyviewer.org> | 2025-11-02 21:40:05 -0500 |
| commit | 76837f96554a683462bb9a28457b7b0d9c078bff (patch) | |
| tree | 1295b5a3866e0b00c0ba5d5590356534be1fcbae /indra/llcommon/threadpool.cpp | |
| parent | d2e80039df1712734a6e3b0d811d73f850345157 (diff) | |
Fix support for setting thread names on linux and macos
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/llcommon/threadpool.cpp')
| -rw-r--r-- | indra/llcommon/threadpool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llcommon/threadpool.cpp b/indra/llcommon/threadpool.cpp index 451e60c083..6adbdffba8 100644 --- a/indra/llcommon/threadpool.cpp +++ b/indra/llcommon/threadpool.cpp @@ -78,6 +78,7 @@ void LL::ThreadPoolBase::start() std::string tname{ stringize(mName, ':', (i+1), '/', mThreadCount) }; mThreads.emplace_back(tname, [this, tname]() { + set_thread_name(tname.c_str()); LL_PROFILER_SET_THREAD_NAME(tname.c_str()); run(tname); }); |
