mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 15:27:36 +02:00
Unlock thread after waiting for cv
This commit is contained in:
parent
d521121f16
commit
67de922d9d
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@
|
|||
(Cyc-mutex-unlock! mutex))
|
||||
((condition-variable? (car opts))
|
||||
(let ((cond-var (car opts)))
|
||||
(condition-variable-wait! cond-var mutex)))
|
||||
(condition-variable-wait! cond-var mutex)
|
||||
(Cyc-mutex-unlock! mutex))) ;; Per SRFI, leave mutex unlocked
|
||||
(else
|
||||
(error "mutex-unlock! - unhandled args" mutex opts))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue