thread: add missing end-atomic
This commit is contained in:
parent
89db60abc9
commit
d26517b49b
|
@ -41,6 +41,7 @@
|
||||||
(set! end-atomic-callback #f)
|
(set! end-atomic-callback #f)
|
||||||
(current-atomic n)
|
(current-atomic n)
|
||||||
(cb)]
|
(cb)]
|
||||||
|
[(negative? n) (internal-error "not in atomic mode to end")]
|
||||||
[else
|
[else
|
||||||
(current-atomic n)]))
|
(current-atomic n)]))
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@
|
||||||
(end-atomic)
|
(end-atomic)
|
||||||
(loop #f #f)]
|
(loop #f #f)]
|
||||||
[else
|
[else
|
||||||
|
(end-atomic)
|
||||||
;; Return result in a thunk:
|
;; Return result in a thunk:
|
||||||
(lambda () #f)])]
|
(lambda () #f)])]
|
||||||
[(and (all-asynchronous? s)
|
[(and (all-asynchronous? s)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user