support win32
This commit is contained in:
@@ -2508,7 +2508,8 @@ PL_thread_raise(int tid, int sig)
|
||||
if ( !REMOTE_ThreadHandle(tid).in_use )
|
||||
goto error;
|
||||
|
||||
if ( !raiseSignal(tid, sig) ||
|
||||
|
||||
if ( !raiseSignal(REMOTE_PL_local_data_p(tid), sig) ||
|
||||
!alertThread(tid) )
|
||||
goto error;
|
||||
|
||||
@@ -2516,6 +2517,16 @@ PL_thread_raise(int tid, int sig)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
#else
|
||||
|
||||
int
|
||||
PL_thread_raise(int tid, int sig)
|
||||
{
|
||||
if ( !raiseSignal(NULL, sig) )
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user