Skip to content
Snippets Groups Projects
Commit 14ea7303 authored by Cosmic Linden's avatar Cosmic Linden
Browse files

SL-17483: Make ThreadPool inherit LLInstanceTracker

(cherry picked from commit 41d6a0e222241606c317281e2f0b211e16813dd5)
parent f96659d7
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "stringize.h" #include "stringize.h"
LL::ThreadPool::ThreadPool(const std::string& name, size_t threads, size_t capacity): LL::ThreadPool::ThreadPool(const std::string& name, size_t threads, size_t capacity):
super(name),
mQueue(name, capacity), mQueue(name, capacity),
mName("ThreadPool:" + name), mName("ThreadPool:" + name),
mThreadCount(threads) mThreadCount(threads)
......
...@@ -22,8 +22,10 @@ ...@@ -22,8 +22,10 @@
namespace LL namespace LL
{ {
class ThreadPool class ThreadPool: public LLInstanceTracker<ThreadPool, std::string>
{ {
private:
using super = LLInstanceTracker<ThreadPool, std::string>;
public: public:
/** /**
* Pass ThreadPool a string name. This can be used to look up the * Pass ThreadPool a string name. This can be used to look up the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment