|
version 1.10.2.8, 2012/08/02 12:08:45
|
version 1.10.2.9, 2012/08/02 12:32:07
|
|
Line 107 sched_hook_cancel(void *task, void *arg __unused)
|
Line 107 sched_hook_cancel(void *task, void *arg __unused)
|
| sched_task_t *t = task; |
sched_task_t *t = task; |
| struct kevent chg[1]; |
struct kevent chg[1]; |
| struct timespec timeout = { 0, 0 }; |
struct timespec timeout = { 0, 0 }; |
| #ifdef EVFILT_AIO | #if defined(EVFILT_AIO) && defined(SIGEV_KEVENT) |
| struct aiocb *acb; |
struct aiocb *acb; |
| #endif |
#endif |
| |
|
|
Line 159 sched_hook_cancel(void *task, void *arg __unused)
|
Line 159 sched_hook_cancel(void *task, void *arg __unused)
|
| EV_SET(&chg[0], TASK_VAL(t), EVFILT_SIGNAL, EV_DELETE, 0, 0, (void*) TASK_VAL(t)); |
EV_SET(&chg[0], TASK_VAL(t), EVFILT_SIGNAL, EV_DELETE, 0, 0, (void*) TASK_VAL(t)); |
| #endif |
#endif |
| break; |
break; |
| #ifdef EVFILT_AIO | #if defined(EVFILT_AIO) && defined(SIGEV_KEVENT) |
| case taskAIO: |
case taskAIO: |
| #ifdef __NetBSD__ |
#ifdef __NetBSD__ |
| EV_SET(&chg[0], TASK_VAL(t), EVFILT_AIO, EV_DELETE, 0, 0, (intptr_t) TASK_VAL(t)); |
EV_SET(&chg[0], TASK_VAL(t), EVFILT_AIO, EV_DELETE, 0, 0, (intptr_t) TASK_VAL(t)); |
|
Line 454 sched_hook_fetch(void *root, void *arg __unused)
|
Line 454 sched_hook_fetch(void *root, void *arg __unused)
|
| struct kevent evt[1], res[KQ_EVENTS]; |
struct kevent evt[1], res[KQ_EVENTS]; |
| register int i, flg; |
register int i, flg; |
| int en; |
int en; |
| #ifdef EVFILT_AIO | #if defined(EVFILT_AIO) && defined(SIGEV_KEVENT) |
| int len, fd; |
int len, fd; |
| struct aiocb *acb; |
struct aiocb *acb; |
| #ifdef EVFILT_LIO |
#ifdef EVFILT_LIO |
|
Line 782 sched_hook_fetch(void *root, void *arg __unused)
|
Line 782 sched_hook_fetch(void *root, void *arg __unused)
|
| if (flg > 1) |
if (flg > 1) |
| evt->flags ^= evt->flags; |
evt->flags ^= evt->flags; |
| break; |
break; |
| #ifdef EVFILT_AIO | #if defined(EVFILT_AIO) && defined(SIGEV_KEVENT) |
| case EVFILT_AIO: |
case EVFILT_AIO: |
| #ifdef EVFILT_LIO |
#ifdef EVFILT_LIO |
| case EVFILT_LIO: |
case EVFILT_LIO: |