@@ -63,7 +63,7 @@ enqueueLIFO ::
6363enqueueLIFO sv q inner m = do
6464 atomicModifyIORefCAS_ q $ \(xs, ys) ->
6565 if inner then (xs, m : ys) else (m : xs, ys)
66− ringDoorBell (needDoorBell sv) (outputDoorBell sv)
66+ ringDoorBell (doorBellOnWorkQ sv) (outputDoorBell sv)
6767
6868data QResult a = QEmpty | QOuter a | QInner a
6969
@@ -239,7 +239,7 @@ enqueueAhead sv q m = do
239239 atomicModifyIORefCAS_ q $ \ case
240240 ([], n) -> ([snd m], n + 1) -- increment sequence
241241 _ -> error "enqueueAhead: queue is not empty"
242− ringDoorBell (needDoorBell sv) (outputDoorBell sv)
242+ ringDoorBell (doorBellOnWorkQ sv) (outputDoorBell sv)
243243
244244-- enqueue without incrementing the sequence number
245245{-# INLINE reEnqueueAhead #-}
@@ -249,7 +249,7 @@ reEnqueueAhead sv q m = do
249249 atomicModifyIORefCAS_ q $ \ case
250250 ([], n) -> ([m], n) -- DO NOT increment sequence
251251 _ -> error "reEnqueueAhead: queue is not empty"
252− ringDoorBell (needDoorBell sv) (outputDoorBell sv)
252+ ringDoorBell (doorBellOnWorkQ sv) (outputDoorBell sv)
253253
254254-- Normally the thread that has the token should never go away. The token gets
255255-- handed over to another thread, but someone or the other has the token at any
@@ -983,7 +983,7 @@ getLifoSVar mrun cfg = do
983983 then isQueueDoneAhead sv aheadQ
984984 else workDone sv
985985
986− , needDoorBell = wfw
986+ , doorBellOnWorkQ = wfw
987987 , svarMrun = mrun
988988 , workerCount = active
989989 -- XXX We can use delThread or modThread based on eager flag.