MCPcopy Create free account
hub / github.com/ceph/ceph / ThreadPoolSingleton

Method ThreadPoolSingleton

src/librbd/Journal.cc:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

make_timespanFunction · 0.85
startFunction · 0.50

Tested by

no test coverage detected