Add an explanatory comment to the test.
This commit is contained in:
parent
cc9248a7c8
commit
90e9a87fa7
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ use std::thread;
|
|||
use std::{mem, ptr};
|
||||
|
||||
extern "C" fn thread_start(_null: *mut libc::c_void) -> *mut libc::c_void {
|
||||
// Yield the thread several times so that other threads can join it.
|
||||
thread::yield_now();
|
||||
thread::yield_now();
|
||||
ptr::null_mut()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue