void shutdown();
bool is_started() const {return dispatch_thread.is_started();}
- DispatchQueue(CephContext *cct, Messenger *msgr)
+ DispatchQueue(CephContext *cct, Messenger *msgr, string &name)
: cct(cct), msgr(msgr),
- lock("Messenger::DispatchQueue::lock"),
+ lock("Messenger::DispatchQueue::lock" + name),
mqueue(cct->_conf->ms_pq_max_tokens_per_priority,
cct->_conf->ms_pq_min_cost),
next_pipe_id(1),
dispatch_thread(this),
- local_delivery_lock("Messenger::DispatchQueue::local_delivery_lock"),
+ local_delivery_lock("Messenger::DispatchQueue::local_delivery_lock" + name),
stop_local_delivery(false),
local_delivery_thread(this),
- dispatch_throttler(cct, string("msgr_dispatch_throttler-") + msgr->get_myname(),
+ dispatch_throttler(cct, string("msgr_dispatch_throttler-") + name,
cct->_conf->ms_dispatch_throttle_bytes),
stop(false)
{}
string mname, uint64_t _nonce, uint64_t features)
: SimplePolicyMessenger(cct, name,mname, _nonce),
processor(this, cct, _nonce),
- dispatch_queue(cct, this),
+ dispatch_queue(cct, this, mname),
lock("AsyncMessenger::lock"),
nonce(_nonce), need_addr(true), did_bind(false),
global_seq(0), deleted_lock("AsyncMessenger::deleted_lock"),
string mname, uint64_t _nonce, uint64_t features)
: SimplePolicyMessenger(cct, name,mname, _nonce),
accepter(this, _nonce),
- dispatch_queue(cct, this),
+ dispatch_queue(cct, this, mname),
reaper_thread(this),
nonce(_nonce),
lock("SimpleMessenger::lock"), need_addr(true), did_bind(false),