mirror of
https://github.com/decompals/wibo.git
synced 2025-12-13 07:06:18 +00:00
Implement async (overlapped) I/O with io_uring
This commit is contained in:
19
src/async_io.h
Normal file
19
src/async_io.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "kernel32/internal.h"
|
||||
#include "kernel32/minwinbase.h"
|
||||
|
||||
#include <optional>
|
||||
|
||||
namespace async_io {
|
||||
|
||||
bool initialize();
|
||||
void shutdown();
|
||||
bool running();
|
||||
|
||||
bool queueRead(Pin<kernel32::FileObject> file, OVERLAPPED *ov, void *buffer, DWORD length,
|
||||
const std::optional<off64_t> &offset, bool isPipe);
|
||||
bool queueWrite(Pin<kernel32::FileObject> file, OVERLAPPED *ov, const void *buffer, DWORD length,
|
||||
const std::optional<off64_t> &offset, bool isPipe);
|
||||
|
||||
} // namespace async_io
|
||||
Reference in New Issue
Block a user