Skip to content

Commit 90e9a87

Browse files
author
Vytautas Astrauskas
committed
Add an explanatory comment to the test.
1 parent cc9248a commit 90e9a87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/compile-fail/concurrency/libc_pthread_join_multiple.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use std::thread;
1010
use std::{mem, ptr};
1111

1212
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.
1314
thread::yield_now();
1415
thread::yield_now();
1516
ptr::null_mut()

0 commit comments

Comments
 (0)