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 965965wake-up} even if a dedicated condition variable is used for every possible
966966state -- it may happen that the system can wake up a sleeping thread (because
967967of various implementation reasons) without any other thread causing this; it is
968- called a \emsl {spurious wakeup }.
968+ called a \emsl {spurious wake up }.
969969\end {itemize }
970970
971971% %%%%
11321132was signalled however it is not necessary. The signalling can be done
11331133after unlocking and in such a case it can be more efficient (depending on
11341134a given implementation) because the thread that has been woken up will not get
1135- immediatelly blocked by the mutex which is still held by the thread signalling
1135+ immediately blocked by the mutex which is still held by the thread signalling
11361136from within the critical section.
11371137\item \label {QUEUESIMULATION } Example:
11381138\example {cond-variables/queue-simulation.c}
You can’t perform that action at this time.
0 commit comments