mirror of
https://github.com/NixOS/nix.git
synced 2025-12-04 08:00:59 +01:00
Start building the scheduler for Windows
Building derivations is a lot harder, but the downloading goals is portable enough. The "common channel" code is due to Volth. I wonder if there is a way we can factor it out into separate functions / files to avoid some within-function CPP. Co-authored-by: volth <volth@volth.com>
This commit is contained in:
parent
87ab3c0ea4
commit
39b2a399ad
25 changed files with 285 additions and 94 deletions
20
src/libutil/windows/windows-async-pipe.hh
Normal file
20
src/libutil/windows/windows-async-pipe.hh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
///@file
|
||||
|
||||
#include "file-descriptor.hh"
|
||||
|
||||
namespace nix::windows {
|
||||
|
||||
class AsyncPipe
|
||||
{
|
||||
public:
|
||||
AutoCloseFD writeSide, readSide;
|
||||
OVERLAPPED overlapped;
|
||||
DWORD got;
|
||||
std::vector<unsigned char> buffer;
|
||||
|
||||
void createAsyncPipe(HANDLE iocp);
|
||||
void close();
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue