version 1.23.2.1, 2014/01/27 16:52:56
|
version 1.23.2.2, 2014/01/27 17:08:02
|
Line 150 schedInit(void ** __restrict data, size_t datlen)
|
Line 150 schedInit(void ** __restrict data, size_t datlen)
|
root->root_miss = MAX_TASK_MISS; |
root->root_miss = MAX_TASK_MISS; |
|
|
/* INFINIT polling period by default */ |
/* INFINIT polling period by default */ |
#ifndef KQ_DISABLE |
|
sched_timespecinf(&root->root_poll); |
sched_timespecinf(&root->root_poll); |
#else |
|
sched_timevalinf(&root->root_poll); |
|
#endif |
|
|
|
#ifdef HAVE_LIBPTHREAD |
#ifdef HAVE_LIBPTHREAD |
for (i = 0; i < taskMAX; i++) |
for (i = 0; i < taskMAX; i++) |
Line 339 schedFetch(sched_root_task_t * __restrict root)
|
Line 335 schedFetch(sched_root_task_t * __restrict root)
|
int |
int |
schedTrigger(sched_task_t * __restrict task) |
schedTrigger(sched_task_t * __restrict task) |
{ |
{ |
|
#ifdef KQ_DISABLE |
|
sched_SetErr(ENOTSUP, "disabled kqueue support"); |
|
return -1; |
|
#else |
#ifndef EVFILT_USER |
#ifndef EVFILT_USER |
sched_SetErr(ENOTSUP, "Not supported kevent() filter"); |
sched_SetErr(ENOTSUP, "Not supported kevent() filter"); |
return -1; |
return -1; |
Line 361 schedTrigger(sched_task_t * __restrict task)
|
Line 361 schedTrigger(sched_task_t * __restrict task)
|
|
|
return 0; |
return 0; |
#endif |
#endif |
|
#endif /* KQ_DISABLE */ |
} |
} |
|
|
/* |
/* |
Line 919 schedPolling(sched_root_task_t * __restrict root, stru
|
Line 920 schedPolling(sched_root_task_t * __restrict root, stru
|
if (!root) |
if (!root) |
return -1; |
return -1; |
|
|
#ifndef KQ_DISABLE |
|
if (tsold) |
if (tsold) |
*tsold = root->root_poll; |
*tsold = root->root_poll; |
|
|
Line 927 schedPolling(sched_root_task_t * __restrict root, stru
|
Line 927 schedPolling(sched_root_task_t * __restrict root, stru
|
sched_timespecinf(&root->root_poll); |
sched_timespecinf(&root->root_poll); |
else |
else |
root->root_poll = *ts; |
root->root_poll = *ts; |
#else |
|
if (tsold) |
|
sched_timeval2spec(&root->root_poll, tsold); |
|
|
|
if (!ts) |
|
sched_timevalinf(&root->root_poll); |
|
else |
|
sched_timespec2val(ts, &root->root_poll); |
|
#endif |
|
|
|
return 0; |
return 0; |
} |
} |