[−][src]Function sunrise_kernel::syscalls::reset_signal
pub fn reset_signal(hnd: u32) -> Result<(), UserspaceError>
Clear the "signaled" state of a readable event or process. After calling this on a signaled event, wait_synchronization() on this handle will wait until the handle is signaled again.
Takes either a ReadableEvent
or a Process
.
Note that once a Process enters the Exited state, it is permanently signaled and cannot be reset. Calling ResetSignal will return an InvalidState error.
Errors
InvalidState
- The event wasn't signaled.
- The process was in Exited state.