olabusayoT commented on code in PR #1717:
URL: https://github.com/apache/daffodil/pull/1717#discussion_r3866672582
##########
daffodil-core/src/main/scala/org/apache/daffodil/runtime1/processors/Suspension.scala:
##########
@@ -228,9 +253,53 @@ trait Suspension extends Serializable {
final def isMakingProgress = isMakingProgress_
+ // Which SuspensionWaiter (if any) this suspension is registered with.
+ // block() unconditionally deregisters this before any retry, so
+ // registerWaiter never finds one already set.
+ private var maybeRegisteredWaiter: Maybe[SuspensionWaiter] = Nope
+
+ /**
+ * True exactly when a targeted wake-up is registered against some
+ * SuspensionWaiter (set only from registerWaiter). SuspensionTracker's
+ * periodic sweep uses this to skip re-running doTask until that
+ * wake-up fires.
Review Comment:
You're right, it got missed in the updates to the waiter. will update
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]