mach_task_self

Function mach_task_self 

Source
pub unsafe fn mach_task_self() -> mach_port_t
Expand description

SAFETY? not sure but you can use a thread lock externally, or use sync::mach_task_self.