File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1144
1144
the thread is woken up, the system will lock the mutex first (this will be done
1145
1145
by the condition variable implementation) and only after that
1146
1146
\texttt {pthread\_ cond\_ wait } will return.
1147
- \item When signalling that something has changed, it does not mean that after
1148
- the change the condition will be true. Moreover,
1147
+ \item When a thread receives a signal that something has changed, it does not
1148
+ mean that after the wake up the condition will be true. Moreover,
1149
1149
\texttt {pthread\_ cond\_ wait } can return even if no thread called
1150
1150
\texttt {pthread\_ cond\_ signal } or \texttt {pthread\_ cond\_ broadcast }.
1151
1151
This is another reason for testing the condition after wake-up and possibly
You can’t perform that action at this time.
0 commit comments