Skip to content

Commit

Permalink
fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Dec 4, 2023
1 parent 642d3f9 commit 4b02fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threads.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,8 @@
the thread is woken up, the system will lock the mutex first (this will be done
by the condition variable implementation) and only after that
\texttt{pthread\_cond\_wait} will return.
\item When signalling that something has changed, it does not mean that after
the change the condition will be true. Moreover,
\item When a thread receives a signal that something has changed, it does not
mean that after the wake up the condition will be true. Moreover,
\texttt{pthread\_cond\_wait} can return even if no thread called
\texttt{pthread\_cond\_signal} or \texttt{pthread\_cond\_broadcast}.
This is another reason for testing the condition after wake-up and possibly
Expand Down

0 comments on commit 4b02fba

Please sign in to comment.