smalltalk
/
osmo-st-core
Archived
1
0
Fork 0

timer: Fix the comments, try to be more clear about what happens

This commit is contained in:
Holger Hans Peter Freyther 2011-06-28 11:54:27 +02:00
parent 8fd1c00968
commit 6595b815c9
1 changed files with 3 additions and 3 deletions

View File

@ -137,9 +137,9 @@ bit difficult to do this race free.'>
copy := sem critical: [queue copy].
"Now execute the timers. One way or another this is crazy. If we have
a long blocking application or a deadlock the timer queue will be get
stuck. But if we run things in a new process the order of the timers
might get run in a different order."
a long blocking application or a deadlock the timer queue will get
stuck. But if we run this in a new process a later process might be run
before this process, changing the order of the timers."
copy do: [:each |
each timeout > now ifTrue: [^true].
sem critical: [queue remove: each].