| 51 | ContextWQ *work_queue; |
| 52 | |
| 53 | explicit ThreadPoolSingleton(CephContext *cct) |
| 54 | : ThreadPool(cct, "librbd::Journal", "tp_librbd_journ", 1), |
| 55 | work_queue(new ContextWQ("librbd::journal::work_queue", |
| 56 | ceph::make_timespan( |
| 57 | cct->_conf.get_val<uint64_t>("rbd_op_thread_timeout")), |
| 58 | this)) { |
| 59 | start(); |
| 60 | } |
| 61 | ~ThreadPoolSingleton() override { |
| 62 | work_queue->drain(); |
| 63 | delete work_queue; |
nothing calls this directly
no test coverage detected