We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba92d9 commit 272592bCopy full SHA for 272592b
fibers/scheduler.scm
@@ -284,6 +284,8 @@ value. Return zero values."
284
(cur (scheduler-current-runqueue sched))
285
(steal-work! (work-stealer sched)))
286
(define (run-task task)
287
+ ;; The only thread writing to the runcount box is the thread of SCHED,
288
+ ;; so no need for atomic-box-compare-and-swap! here.
289
(atomic-box-set! runcount-box
290
(logand (1+ (atomic-box-ref runcount-box)) #xffffFFFF))
291
(call-with-prompt tag
0 commit comments