mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-28 14:13:37 +00:00
1. Added ILibChain_WriteEx()
2. Updated ILibChain_Continue() on windows to take an optional list of HANDLE** 3. Updated net.socket IPC on Windows to use ILibChain_ReadEx and ILibChain_WriteEx 4. Fixed child_process.waitExit() on windows to pass only the wait handles for the process 5. Added GetWaitHandles() to ILibProcessPipe
This commit is contained in:
@@ -1318,6 +1318,16 @@ void ILibProcessPipe_Process_AddHandlers(ILibProcessPipe_Process module, int buf
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#ifdef WIN32
|
||||
void ILibProcessPipe_Process_GetWaitHandles(ILibProcessPipe_Process p, HANDLE *hProcess, HANDLE *read, HANDLE *write, HANDLE *error)
|
||||
{
|
||||
ILibProcessPipe_Process_Object* j = (ILibProcessPipe_Process_Object*)p;
|
||||
*hProcess = j->hProcess;
|
||||
*read = j->stdOut->mOverlapped->hEvent;
|
||||
*error = j->stdErr->mOverlapped->hEvent;
|
||||
*write = j->stdIn->mOverlapped->hEvent;
|
||||
}
|
||||
#endif
|
||||
void ILibProcessPipe_Pipe_Close(ILibProcessPipe_Pipe po)
|
||||
{
|
||||
ILibProcessPipe_PipeObject* pipeObject = (ILibProcessPipe_PipeObject*)po;
|
||||
|
||||
Reference in New Issue
Block a user