… | |
… | |
249 | #ifndef EV_USE_FLOOR |
249 | #ifndef EV_USE_FLOOR |
250 | # define EV_USE_FLOOR 0 |
250 | # define EV_USE_FLOOR 0 |
251 | #endif |
251 | #endif |
252 | |
252 | |
253 | #ifndef EV_USE_CLOCK_SYSCALL |
253 | #ifndef EV_USE_CLOCK_SYSCALL |
254 | # if __linux && __GLIBC__ >= 2 |
254 | # if __linux && __GLIBC__ == 2 && __GLIBC_MINOR__ < 17 |
255 | # define EV_USE_CLOCK_SYSCALL EV_FEATURE_OS |
255 | # define EV_USE_CLOCK_SYSCALL EV_FEATURE_OS |
256 | # else |
256 | # else |
257 | # define EV_USE_CLOCK_SYSCALL 0 |
257 | # define EV_USE_CLOCK_SYSCALL 0 |
258 | # endif |
258 | # endif |
259 | #endif |
259 | #endif |
… | |
… | |
2545 | { |
2545 | { |
2546 | return userdata; |
2546 | return userdata; |
2547 | } |
2547 | } |
2548 | |
2548 | |
2549 | void |
2549 | void |
2550 | 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 |
2551 | { |
2551 | { |
2552 | invoke_cb = invoke_pending_cb; |
2552 | invoke_cb = invoke_pending_cb; |
2553 | } |
2553 | } |
2554 | |
2554 | |
2555 | void |
2555 | void |
2556 | 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 |
2557 | { |
2557 | { |
2558 | release_cb = release; |
2558 | release_cb = release; |
2559 | acquire_cb = acquire; |
2559 | acquire_cb = acquire; |
2560 | } |
2560 | } |
2561 | #endif |
2561 | #endif |