* Checks whether the calling thread is one of the worker threads * for this work queue. * * @returns true if called from one of the worker threads, false otherwise */
| 133 | * @returns true if called from one of the worker threads, false otherwise |
| 134 | */ |
| 135 | bool WorkQueue::IsWorkerThread() const |
| 136 | { |
| 137 | WorkQueue **pwq = l_ThreadWorkQueue.get(); |
| 138 | |
| 139 | if (!pwq) |
| 140 | return false; |
| 141 | |
| 142 | return *pwq == this; |
| 143 | } |
| 144 | |
| 145 | void WorkQueue::SetExceptionCallback(const ExceptionCallback& callback) |
| 146 | { |
no test coverage detected