diff options
author | Runitai Linden <davep@lindenlab.com> | 2021-11-22 18:42:56 -0600 |
---|---|---|
committer | Runitai Linden <davep@lindenlab.com> | 2021-11-22 18:42:56 -0600 |
commit | 9b0d8c7e629597fd8e6dfb91a6b8f625b34ab274 (patch) | |
tree | f6c6827da1acd3a442663a050d4a93d55925ee0f /indra/llcommon/threadpool.cpp | |
parent | cc34e26ef7e74845e4af9e5c5d450c0b12a268e0 (diff) |
SL-16094 More profile hooks for threading code, remove redundant wglCreateContextAttribs call
Diffstat (limited to 'indra/llcommon/threadpool.cpp')
-rw-r--r-- | indra/llcommon/threadpool.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llcommon/threadpool.cpp b/indra/llcommon/threadpool.cpp index cf25cc838e..06e0dc5bfc 100644 --- a/indra/llcommon/threadpool.cpp +++ b/indra/llcommon/threadpool.cpp @@ -28,7 +28,11 @@ LL::ThreadPool::ThreadPool(const std::string& name, size_t threads, size_t capac for (size_t i = 0; i < threads; ++i) { std::string tname{ STRINGIZE(mName << ':' << (i+1) << '/' << threads) }; - mThreads.emplace_back(tname, [this, tname](){ run(tname); }); + mThreads.emplace_back(tname, [this, tname]() + { + LL_PROFILER_SET_THREAD_NAME(tname.c_str()); + run(tname); + }); } // Listen on "LLApp", and when the app is shutting down, close the queue // and join the workers. |