pub unsafe fn unshare_unsafe(flags: UnshareFlags) -> Result<()>Expand description
unshare(flags)—Disassociate parts of the current thread’s execution
context with other threads.
§Safety
When using UnshareFlags::FILES, this function can cause one thread to be
unable to use file descriptors created on a different thread. Callers must
ensure that threads never observe file descriptors from unshared tables.