summaryrefslogtreecommitdiffhomepage
path: root/src/ipc/ntapi_tt_create_pipe_v2.c
AgeCommit message (Collapse)AuthorFilesLines
2017-08-18project: src/ipc: normalized source file names.midipix1-114/+0
2017-08-18__ntapi_ipc_create_pipe(): refine, change polling strategy.midipix1-11/+9
The canonical way of polling an i/o handle by requesting a zero-byte read/write operation and then waiting on the event (or apc routine) that was specified for that i/o operation fails to work on the writing end of a byte-stream pipe. Specifically, the request completes immediately, therefore not allowing us to employ it for a controlled poll operation. Following this patch, the writing end of the pipe is opened with the NT_FILE_SYNCHRONOUS_IO_ALERT flag set. With this flag set, zero-byte writes block, which makes them perfectly suitable for a polling operation, but less so for non-blocking i/o. With some effort, however, the latter can be achieved and be both robust and reliable.
2017-02-04annual chores.midipix1-1/+1
2016-06-20__ntapi_tt_create_pipe_v2(): refactor, always close hdevpipes.midipix1-17/+15
2016-05-14code maintenance: mark unused parameters.midipix1-0/+2
2016-01-23annual chores.midipix1-1/+1
2015-07-27entered advanced internal development stage.midipix1-0/+116