Make multiple threads to try to join a thread while it is still running.

This commit is contained in:
Vytautas Astrauskas 2020-04-20 17:02:43 -07:00
parent d45e985669
commit eaa63266d8

View File

@ -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()
}