Ticket #8933: win_iocp_io_service.ipp.patch
File win_iocp_io_service.ipp.patch, 1.3 KB (added by , 9 years ago) |
---|
-
win_iocp_io_service.ipp
236 236 op->ready_ = 1; 237 237 238 238 // Enqueue the operation on the I/O completion port. 239 if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))239 if (!::PostQueuedCompletionStatus(iocp_.handle, 0, overlapped_contains_result, op)) 240 240 { 241 241 // Out of resources. Put on completed queue instead. 242 242 mutex::scoped_lock lock(dispatch_mutex_); … … 256 256 op->ready_ = 1; 257 257 258 258 // Enqueue the operation on the I/O completion port. 259 if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))259 if (!::PostQueuedCompletionStatus(iocp_.handle, 0, overlapped_contains_result, op)) 260 260 { 261 261 // Out of resources. Put on completed queue instead. 262 262 mutex::scoped_lock lock(dispatch_mutex_); … … 283 283 if (::InterlockedCompareExchange(&op->ready_, 1, 0) == 1) 284 284 { 285 285 // Enqueue the operation on the I/O completion port. 286 if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))286 if (!::PostQueuedCompletionStatus(iocp_.handle, 0, overlapped_contains_result, op)) 287 287 { 288 288 // Out of resources. Put on completed queue instead. 289 289 mutex::scoped_lock lock(dispatch_mutex_);