SL-17483: Make ThreadPool inherit LLInstanceTracker

(cherry picked from commit 41d6a0e222241606c317281e2f0b211e16813dd5)
master
Cosmic Linden 2022-05-31 12:49:53 -07:00 committed by Nat Goodspeed
parent cdbd06e8ed
commit ef87eb7fa8
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@
#include "stringize.h"
LL::ThreadPool::ThreadPool(const std::string& name, size_t threads, size_t capacity):
super(name),
mQueue(name, capacity),
mName("ThreadPool:" + name),
mThreadCount(threads)

View File

@ -22,8 +22,10 @@
namespace LL
{
class ThreadPool
class ThreadPool: public LLInstanceTracker<ThreadPool, std::string>
{
private:
using super = LLInstanceTracker<ThreadPool, std::string>;
public:
/**
* Pass ThreadPool a string name. This can be used to look up the