mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 15:53:55 +00:00
1. Added ability to query if Select was interrupted with APC
2. Updated So that before readableStream and 'exit' are dispatched, APC's are unrolled if 'select' was interrupted, preventing stack corruption caused by trying to make a re-entrant winsock call, which is not supported by winsock.
This commit is contained in:
@@ -1510,6 +1510,10 @@ HANDLE ILibChain_GetMicrostackThreadHandle(void *chain)
|
||||
{
|
||||
return(((struct ILibBaseChain*)chain)->MicrostackThreadHandle);
|
||||
}
|
||||
int ILibChain_SelectInterrupted(void *chain)
|
||||
{
|
||||
return(((struct ILibBaseChain*)chain)->PreSelectCount == 0 ? 0 : !(((struct ILibBaseChain*)chain)->PreSelectCount == ((struct ILibBaseChain*)chain)->PostSelectCount && ((struct ILibBaseChain*)chain)->PreSelectCount != 0));
|
||||
}
|
||||
#endif
|
||||
|
||||
void ILibChain_Safe_Destroy(void *object)
|
||||
|
||||
Reference in New Issue
Block a user