Fix HasTimeoutHandler
This commit is contained in:
parent
d2fbc1040e
commit
2a780652e1
@ -148,9 +148,9 @@ where
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct InProcessHandlers {
|
pub struct InProcessHandlers {
|
||||||
/// On crash C function pointer
|
/// On crash C function pointer
|
||||||
crash_handler: *const c_void,
|
pub crash_handler: *const c_void,
|
||||||
/// On timeout C function pointer
|
/// On timeout C function pointer
|
||||||
timeout_handler: *const c_void,
|
pub timeout_handler: *const c_void,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InProcessHandlers {
|
impl InProcessHandlers {
|
||||||
@ -873,7 +873,7 @@ where
|
|||||||
/// the timeout handler
|
/// the timeout handler
|
||||||
#[inline]
|
#[inline]
|
||||||
fn timeout_handler(&self) -> WaitOrTimerCallback {
|
fn timeout_handler(&self) -> WaitOrTimerCallback {
|
||||||
let func: WaitOrTimerCallback = unsafe { transmute(self.timeout_handler()) };
|
let func: WaitOrTimerCallback = unsafe { transmute(self.handlers.timeout_handler) };
|
||||||
func
|
func
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user