Skip to content

Commit 95eed8b

Browse files
Bilogweb3cuviper
authored andcommitted
Update README.md
1 parent d179ea9 commit 95eed8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rayon-core/src/sleep/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The full protocol for a thread to fall asleep is as follows:
139139
* Checks the JEC to see that it has not changed from `final_value`.
140140
* If it has, then the thread goes back to searching for work. We reset to
141141
just before we got sleepy, so that we will do one more search
142-
before attending to sleep again (rather than searching for many rounds).
142+
before attempting to sleep again (rather than searching for many rounds).
143143
* Increments the number of sleeping threads by 1.
144144
* The thread then executes a seq-cst fence operation (see below).
145145
* The thread then does one final check for injected jobs (see below). If any
@@ -216,4 +216,4 @@ Meanwhile, the sleepy thread does the following:
216216
Either PushFence or SleepFence must come first:
217217

218218
* If PushFence comes first, then PushJob must be visible to ReadJob.
219-
* If SleepFence comes first, then IncSleepers is visible to ReadSleepers.
219+
* If SleepFence comes first, then IncSleepers is visible to ReadSleepers.

0 commit comments

Comments
 (0)