shared-memory IPC that actually works (albeit Windows-only for now)

This commit is contained in:
Arisotura
2022-08-20 02:29:42 +02:00
parent d8b735822a
commit 5a10807f91
5 changed files with 248 additions and 166 deletions

View File

@ -26,8 +26,8 @@ namespace LocalMP
bool Init();
void DeInit();
int SendPacket(u8* data, int len);
int RecvPacket(u8* data, bool block);
int SendPacket(u8* data, int len, u64 timestamp);
int RecvPacket(u8* data, bool block, u64* timestamp);
bool SendSync(u16 clientmask, u16 type, u64 val);
bool WaitSync(u16 clientmask, u16* type, u64* val);
u16 WaitMultipleSyncs(u16 type, u16 clientmask, u64 curval);