Issue status update for http://smalltalk.gnu.org/node/631 Post a follow up: http://smalltalk.gnu.org/project/comments/add/631

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     bug reports
Priority:     normal
Assigned to:  MrGwen
Reported by:  MrGwen
Updated by:   MrGwen
Status:       active

In master I've the following problem with Delay.
st> d := Delay forSeconds: 2.
st> d wait (wait two seconds)
st> d wait
(doesn't wait anymore)
st> d reset; wait
(wait again two seconds)

If I change Delay class>>#unscheduleDelay: it works

Delay class >> unscheduleDelay: aDelay [
"Private - Unschedule this Delay.  Run in the timer process, which
 is the only one that manipulates Queue."


| activeDelay |
activeDelay := self activeDelay.
activeDelay isNil ifTrue: [^self].
aDelay reset.
activeDelay == aDelay ifTrue: [^Queue removeLast].
Queue identityRemove: aDelay ifAbsent: [].
]



_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to