From 77febe0e6b4e144992ea1b26ae1b9b45b746d970 Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Mon, 27 Dec 2021 15:37:30 -0800 Subject: Introduce timer_* support This commit adds support for the signal timer mechanism in POSIX, the mirror to timerfd on Linux. Resolves #1424 Signed-off-by: Brian L. Troutwine --- src/sys/signal.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sys/signal.rs') diff --git a/src/sys/signal.rs b/src/sys/signal.rs index b655604d..9750d890 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -1085,6 +1085,11 @@ mod sigevent { pub fn sigevent(&self) -> libc::sigevent { self.sigevent } + + /// Returns a mutable pointer to the `sigevent` wrapped by `self` + pub fn as_mut_ptr(&mut self) -> *mut libc::sigevent { + &mut self.sigevent + } } impl<'a> From<&'a libc::sigevent> for SigEvent { -- cgit v1.2.3