File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rayon-core/src/thread_pool Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ impl ThreadPool {
346346 /// thread is part of *this* thread pool.
347347 ///
348348 /// Returns `Some(Yield::Executed)` if anything was executed, `Some(Yield::Idle)` if
349- /// nothing was available, or `None` if this thread is not part of any pool at all .
349+ /// nothing was available, or `None` if the current thread is not part this pool.
350350 pub fn yield_now ( & self ) -> Option < Yield > {
351351 let curr = self . registry . current_thread ( ) ?;
352352 Some ( curr. yield_now ( ) )
@@ -358,7 +358,7 @@ impl ThreadPool {
358358 /// thread is part of *this* thread pool.
359359 ///
360360 /// Returns `Some(Yield::Executed)` if anything was executed, `Some(Yield::Idle)` if
361- /// nothing was available, or `None` if this thread is not part of any pool at all .
361+ /// nothing was available, or `None` if the current thread is not part this pool.
362362 pub fn yield_local ( & self ) -> Option < Yield > {
363363 let curr = self . registry . current_thread ( ) ?;
364364 Some ( curr. yield_local ( ) )
You can’t perform that action at this time.
0 commit comments