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 {
346
346
/// thread is part of *this* thread pool.
347
347
///
348
348
/// 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.
350
350
pub fn yield_now ( & self ) -> Option < Yield > {
351
351
let curr = self . registry . current_thread ( ) ?;
352
352
Some ( curr. yield_now ( ) )
@@ -358,7 +358,7 @@ impl ThreadPool {
358
358
/// thread is part of *this* thread pool.
359
359
///
360
360
/// 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.
362
362
pub fn yield_local ( & self ) -> Option < Yield > {
363
363
let curr = self . registry . current_thread ( ) ?;
364
364
Some ( curr. yield_local ( ) )
You can’t perform that action at this time.
0 commit comments