Previous: Thread Special Ports, Up: Thread Interface


7.1.8 Exceptions

— Function: kern_return_t catch_exception_raise (mach_port_t exception_port, thread_t thread, task_t task, int exception, int code, int subcode)

XXX Fixme

— Function: kern_return_t exception_raise (mach_port_t exception_port, mach_port_t thread, mach_port_t task, integer_t exception, integer_t code, integer_t subcode)

XXX Fixme

— Function: kern_return_t evc_wait (unsigned int event)

The system trap evc_wait makes the calling thread wait for the event specified by event.

The call returns KERN_SUCCESS if the event has occurred, KERN_NO_SPACE if another thread is waiting for the same event and KERN_INVALID_ARGUMENT if the event object is invalid.