signal handling

This commit is contained in:
U-vsc-PC\vsc 2014-03-04 12:03:14 +00:00
parent 77f3de2fbe
commit b7fbd08f7a
1 changed files with 4 additions and 0 deletions

View File

@ -2428,7 +2428,11 @@ X_API int PL_thread_self(void)
static int
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;
#endif
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -