help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [bug] Delay issue


From: Gwenael Casaccio
Subject: [Help-smalltalk] [bug] Delay issue
Date: Sat, 21 Jan 2012 09:54:11 -0700

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: [].
]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]