Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
windows-async-pipe.hh
Go to the documentation of this file.
1#pragma once
3
5
6namespace nix::windows {
7
8/***
9 * An "async pipe" is a pipe that supports I/O Completion Ports so
10 * multiple pipes can be listened too.
11 *
12 * Unfortunately, only named pipes support that on windows, so we use
13 * those with randomized temp file names.
14 */
16{
17public:
18 AutoCloseFD writeSide, readSide;
19 OVERLAPPED overlapped;
20 DWORD got;
21 std::vector<unsigned char> buffer;
22
23 void createAsyncPipe(HANDLE iocp);
24 void close();
25};
26
27} // namespace nix::windows
Definition file-descriptor.hh:265
Definition windows-async-pipe.hh:16
File descriptor operations for almost arbitrary file descriptors.