… | |
… | |
241 | #elif defined SIGARRAYSIZE |
241 | #elif defined SIGARRAYSIZE |
242 | # define EV_NSIG (SIGARRAYSIZE) /* Assume ary[SIGARRAYSIZE] */ |
242 | # define EV_NSIG (SIGARRAYSIZE) /* Assume ary[SIGARRAYSIZE] */ |
243 | #elif defined _sys_nsig |
243 | #elif defined _sys_nsig |
244 | # define EV_NSIG (_sys_nsig) /* Solaris 2.5 */ |
244 | # define EV_NSIG (_sys_nsig) /* Solaris 2.5 */ |
245 | #else |
245 | #else |
246 | # error "unable to find value for NSIG, please report" |
246 | # define EV_NSIG (8 * sizeof (sigset_t) + 1) |
247 | /* to make it compile regardless, just remove the above line, */ |
|
|
248 | /* but consider reporting it, too! :) */ |
|
|
249 | # define EV_NSIG 65 |
|
|
250 | #endif |
247 | #endif |
251 | |
248 | |
252 | #ifndef EV_USE_FLOOR |
249 | #ifndef EV_USE_FLOOR |
253 | # define EV_USE_FLOOR 0 |
250 | # define EV_USE_FLOOR 0 |
254 | #endif |
251 | #endif |
255 | |
252 | |
256 | #ifndef EV_USE_CLOCK_SYSCALL |
253 | #ifndef EV_USE_CLOCK_SYSCALL |
257 | # if __linux && __GLIBC__ >= 2 |
254 | # if __linux && __GLIBC__ == 2 && __GLIBC_MINOR__ < 17 |
258 | # define EV_USE_CLOCK_SYSCALL EV_FEATURE_OS |
255 | # define EV_USE_CLOCK_SYSCALL EV_FEATURE_OS |
259 | # else |
256 | # else |
260 | # define EV_USE_CLOCK_SYSCALL 0 |
257 | # define EV_USE_CLOCK_SYSCALL 0 |
261 | # endif |
258 | # endif |
262 | #endif |
259 | #endif |
… | |
… | |
2548 | { |
2545 | { |
2549 | return userdata; |
2546 | return userdata; |
2550 | } |
2547 | } |
2551 | |
2548 | |
2552 | void |
2549 | void |
2553 | ev_set_invoke_pending_cb (EV_P_ void (*invoke_pending_cb)(EV_P)) EV_THROW |
2550 | ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW |
2554 | { |
2551 | { |
2555 | invoke_cb = invoke_pending_cb; |
2552 | invoke_cb = invoke_pending_cb; |
2556 | } |
2553 | } |
2557 | |
2554 | |
2558 | void |
2555 | void |
2559 | ev_set_loop_release_cb (EV_P_ void (*release)(EV_P) EV_THROW, void (*acquire)(EV_P) EV_THROW) EV_THROW |
2556 | ev_set_loop_release_cb (EV_P_ ev_loop_callback_nothrow release, ev_loop_callback_nothrow acquire) EV_THROW |
2560 | { |
2557 | { |
2561 | release_cb = release; |
2558 | release_cb = release; |
2562 | acquire_cb = acquire; |
2559 | acquire_cb = acquire; |
2563 | } |
2560 | } |
2564 | #endif |
2561 | #endif |