From 90e9a87fa79f541efecadde6daa53299b9350e07 Mon Sep 17 00:00:00 2001 From: Vytautas Astrauskas Date: Mon, 20 Apr 2020 17:13:22 -0700 Subject: [PATCH] Add an explanatory comment to the test. --- tests/compile-fail/concurrency/libc_pthread_join_multiple.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/compile-fail/concurrency/libc_pthread_join_multiple.rs b/tests/compile-fail/concurrency/libc_pthread_join_multiple.rs index 0d99b69ed914..f8a43cfcde64 100644 --- a/tests/compile-fail/concurrency/libc_pthread_join_multiple.rs +++ b/tests/compile-fail/concurrency/libc_pthread_join_multiple.rs @@ -10,6 +10,7 @@ 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()