diff options
Diffstat (limited to 'src/common/WorkQueue.h')
-rw-r--r-- | src/common/WorkQueue.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/WorkQueue.h b/src/common/WorkQueue.h index 5103cdd0f00..67c1a87b783 100644 --- a/src/common/WorkQueue.h +++ b/src/common/WorkQueue.h @@ -28,6 +28,7 @@ class CephContext; class ThreadPool : public md_config_obs_t { CephContext *cct; string name; + string thread_name; string lockname; Mutex _lock; Cond _cond; @@ -458,7 +459,7 @@ private: void worker(WorkThread *wt); public: - ThreadPool(CephContext *cct_, string nm, int n, const char *option = NULL); + ThreadPool(CephContext *cct_, string nm, string tn, int n, const char *option = NULL); virtual ~ThreadPool(); /// return number of threads currently running @@ -618,6 +619,7 @@ class ShardedThreadPool { CephContext *cct; string name; + string thread_name; string lockname; Mutex shardedpool_lock; Cond shardedpool_cond; @@ -698,7 +700,7 @@ private: public: - ShardedThreadPool(CephContext *cct_, string nm, uint32_t pnum_threads); + ShardedThreadPool(CephContext *cct_, string nm, string tn, uint32_t pnum_threads); ~ShardedThreadPool(){}; |