| 85 | } |
| 86 | |
| 87 | void TOverlappedSubmissionThread::addWorkItem(TOverlappedWorkItem* item) { |
| 88 | InterlockedPushEntrySList(&workList_, item); |
| 89 | SetEvent(workAvailableEvent_.h); |
| 90 | WaitForSingleObject(item->doneSubmittingEvent.h, INFINITE); |
| 91 | } |
| 92 | |
| 93 | TOverlappedSubmissionThread* TOverlappedSubmissionThread::acquire_instance() { |
| 94 | TAutoCrit lock(instanceGuard_); |
no outgoing calls
no test coverage detected