Make multiple threads to try to join a thread while it is still running.
This commit is contained in:
parent
d45e985669
commit
eaa63266d8
@ -10,6 +10,8 @@ use std::thread;
|
||||
use std::{mem, ptr};
|
||||
|
||||
extern "C" fn thread_start(_null: *mut libc::c_void) -> *mut libc::c_void {
|
||||
thread::yield_now();
|
||||
thread::yield_now();
|
||||
ptr::null_mut()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user