58
58
// Returned function clears job when called, provided the job is still in the queue.
59
59
// done() removes any cleared jobs from the queue without calling them.
60
60
weak_ptr<function<void()>> weak_p(job_p);
63
63
auto job_p = weak_p.lock();