wait until task k has been finished
| 15 | |
| 16 | // wait until task k has been finished |
| 17 | void wait(int k) { |
| 18 | ULock l(mu_); |
| 19 | cond_.wait(l, [this, k]{ return (task_.count(k) && task_[k] == true); }); |
| 20 | } |
| 21 | |
| 22 | // non-blocking wait |
| 23 | bool tryWait(int k) { |
no test coverage detected