version 1.31, 2023/02/25 15:55:01
|
version 1.31.2.1, 2023/02/27 01:25:07
|
Line 1181 int
|
Line 1181 int
|
schedSignalDispatch(sched_root_task_t * __restrict root, int on) |
schedSignalDispatch(sched_root_task_t * __restrict root, int on) |
{ |
{ |
sigset_t ss; |
sigset_t ss; |
|
struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 }; |
#ifndef HAVE_LIBPTHREAD |
#ifndef HAVE_LIBPTHREAD |
sched_SetErr(ENOTSUP, "Library has not support pthreads"); |
sched_SetErr(ENOTSUP, "Library has not support pthreads"); |
return -1; |
return -1; |
Line 1204 schedSignalDispatch(sched_root_task_t * __restrict roo
|
Line 1205 schedSignalDispatch(sched_root_task_t * __restrict roo
|
pthread_mutex_unlock(&root->root_sigmtx); |
pthread_mutex_unlock(&root->root_sigmtx); |
return 0; |
return 0; |
} |
} |
|
|
|
/* if we have not using polling, then we must turn on */ |
|
if (sched_timespecisinf(&root->root_poll)) |
|
schedPolling(root, &ts, NULL); |
|
|
pthread_attr_init(&attr); |
pthread_attr_init(&attr); |
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |