Function checkEvent [src]
Checks to see whether an event is signaled.
The underlying function is equivalent to this pseudo-code:
if (event.type.signal)
return error.InvalidParameter;
if (event.signaled) {
event.signaled = false;
return true;
}
const notify = event.notification_function orelse return false;
notify();
if (event.signaled) {
event.signaled = false;
return true;
}
return false;
Prototype
pub fn checkEvent(self: *BootServices, event: Event) CheckEventError!bool Parameters
self: *BootServicesevent: Event Possible Errors
Source
pub fn checkEvent(self: *BootServices, event: Event) CheckEventError!bool {
switch (self._checkEvent(event)) {
.success => return true,
.not_ready => return false,
.invalid_parameter => return error.InvalidParameter,
else => |status| return uefi.unexpectedStatus(status),
}
}