MCPcopy Create free account
hub / github.com/apache/thrift / addWorkItem

Method addWorkItem

lib/cpp/src/thrift/windows/OverlappedSubmissionThread.cpp:87–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

beginAsyncReadMethod · 0.80
interruptMethod · 0.80
initiateNamedConnectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected