use condition-notify in the docs, not condition-signal
This commit is contained in:
parent
c1456e303a
commit
0e82377a2d
1 changed files with 2 additions and 2 deletions
|
@ -196,12 +196,12 @@ may be spurious notifications.
|
|||
|
||||
Similarly, the mutex must be held before notifying the condition.
|
||||
The typical, and best, approach is to acquire the mutex, make the
|
||||
changes associated with this condition, and then signal it:
|
||||
changes associated with this condition, and then notify it:
|
||||
|
||||
@example
|
||||
(with-mutex mutex
|
||||
(setq global-variable (some-computation))
|
||||
(condition-signal cond-var))
|
||||
(condition-notify cond-var))
|
||||
@end example
|
||||
|
||||
@defun make-condition-variable mutex &optional name
|
||||
|
|
Loading…
Add table
Reference in a new issue