MCPcopy Create free account
hub / github.com/apache/qpid-proton / post_completion

Function post_completion

c/src/proactor/win_iocp.cpp:1741–1749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1739static void proactor_shutdown(pn_proactor_t *p);
1740
1741static void post_completion(iocp_t *iocp, ULONG_PTR arg1, void *arg2) {
1742 // Despite the vagueness of the official documentation, the
1743 // following args to Post are passed undisturbed and unvalidated
1744 // to GetQueuedCompletionStatus(). In particular, arg2 does not
1745 // have to be an OVERLAPPED struct and may be NULL.
1746
1747 DWORD nxfer = 0; // We could pass this through too if needed.
1748 PostQueuedCompletionStatus(iocp->completion_port, nxfer, arg1, (LPOVERLAPPED) arg2);
1749}
1750
1751static inline bool is_write_result(iocp_result_t *r) {
1752 return r && r->type == IOCP_WRITE;

Callers 3

wakeupFunction · 0.85
proactor_wakeFunction · 0.85
pn_listener_accept2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected