| 54 | } |
| 55 | |
| 56 | void AsyncGroup::notify(DispatchFunction function) { |
| 57 | std::unique_lock<Mutex> guard(_mutex); |
| 58 | if (_enterCount == 0) { |
| 59 | guard.unlock(); |
| 60 | function(); |
| 61 | return; |
| 62 | } |
| 63 | |
| 64 | lockFreeEnqueueFunction(std::move(function)); |
| 65 | } |
| 66 | |
| 67 | void AsyncGroup::blockingWait() { |
| 68 | std::unique_lock<Mutex> guard(_mutex); |
no test coverage detected