timer: Fix the comments, try to be more clear about what happens
This commit is contained in:
parent
8fd1c00968
commit
6595b815c9
6
Timer.st
6
Timer.st
|
@ -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].
|
||||
|
|
Reference in New Issue