MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / markSubmissionPending

Method markSubmissionPending

Libraries/Async/Async.cpp:563–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561#endif
562
563SC::Result SC::AsyncExternalCompletion::markSubmissionPending()
564{
565 SC_TRY_MSG(not submissionPending, "AsyncExternalCompletion already has a pending submission");
566 submissionPending = true;
567 bytesTransferred = 0;
568 completionPosted = false;
569#if SC_PLATFORM_WINDOWS
570 overlapped.get().userData = this;
571 memset(&overlapped.get().overlapped, 0, sizeof(overlapped.get().overlapped));
572#endif
573 return SC::Result(true);
574}
575
576SC::Result SC::AsyncExternalCompletion::clearSubmissionPending()
577{

Calls 2

ResultClass · 0.70
getMethod · 0.45