We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9248a commit 90e9a87Copy full SHA for 90e9a87
tests/compile-fail/concurrency/libc_pthread_join_multiple.rs
@@ -10,6 +10,7 @@ use std::thread;
10
use std::{mem, ptr};
11
12
extern "C" fn thread_start(_null: *mut libc::c_void) -> *mut libc::c_void {
13
+ // Yield the thread several times so that other threads can join it.
14
thread::yield_now();
15
16
ptr::null_mut()
0 commit comments