This commit is contained in:
Niko Matsakis 2018-10-30 20:32:05 -04:00
parent e355300554
commit cf9db9cc7f

View file

@ -67,7 +67,7 @@ fn true_parallel_same_keys() {
}); });
// Thread 2 will wait until Thread 1 has entered sum and then -- // Thread 2 will wait until Thread 1 has entered sum and then --
// once it has set tself to block -- signal Thread 1 to // once it has set itself to block -- signal Thread 1 to
// continue. This way, we test out the mechanism of one thread // continue. This way, we test out the mechanism of one thread
// blocking on another. // blocking on another.
let thread2 = std::thread::spawn({ let thread2 = std::thread::spawn({