signal handling
This commit is contained in:
parent
77f3de2fbe
commit
b7fbd08f7a
@ -2428,7 +2428,11 @@ X_API int PL_thread_self(void)
|
|||||||
static int
|
static int
|
||||||
alertThread(int tid)
|
alertThread(int tid)
|
||||||
{
|
{
|
||||||
|
#if _WIN32
|
||||||
|
return pthread_kill(REMOTE_ThreadHandle(tid).pthread_handle, YAP_WINTIMER_SIGNAL) == 0;
|
||||||
|
#else
|
||||||
return pthread_kill(REMOTE_ThreadHandle(tid).pthread_handle, YAP_ALARM_SIGNAL) == 0;
|
return pthread_kill(REMOTE_ThreadHandle(tid).pthread_handle, YAP_ALARM_SIGNAL) == 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
Reference in New Issue
Block a user