Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
windows-async-pipe.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/util/file-descriptor.hh
"
5
6
namespace
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
*/
15
class
AsyncPipe
16
{
17
public
:
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
nix::AutoCloseFD
Definition
file-descriptor.hh:265
nix::windows::AsyncPipe
Definition
windows-async-pipe.hh:16
file-descriptor.hh
File descriptor operations for almost arbitrary file descriptors.
libutil
windows
include
nix
util
windows-async-pipe.hh
Generated by
1.18.0