Fix HasTimeoutHandler

This commit is contained in:
Andrea Fioraldi 2021-11-18 09:42:35 +01:00
parent d2fbc1040e
commit 2a780652e1

View File

@ -148,9 +148,9 @@ where
#[derive(Debug)]
pub struct InProcessHandlers {
/// On crash C function pointer
crash_handler: *const c_void,
pub crash_handler: *const c_void,
/// On timeout C function pointer
timeout_handler: *const c_void,
pub timeout_handler: *const c_void,
}
impl InProcessHandlers {
@ -873,7 +873,7 @@ where
/// the timeout handler
#[inline]
fn timeout_handler(&self) -> WaitOrTimerCallback {
let func: WaitOrTimerCallback = unsafe { transmute(self.timeout_handler()) };
let func: WaitOrTimerCallback = unsafe { transmute(self.handlers.timeout_handler) };
func
}
}