Mantis - Croquet
Viewing Issue Advanced Details
3523 Any minor always 05-02-06 01:45 06-19-06 21:49
bfowlow  
andreas  
normal  
resolved  
fixed  
none    
none  
0003523: WorldState runStepMethodsIn:aWorld can block

This code from WorldState runStepMethodsIn: aWorld
is vulnerable to a race condition:

    queue := self class deferredUIMessages.
    [queue isEmpty] whileFalse: [
        queue next value
    ].


which can lead an individual call blocking on 'queue next'
if another world cycle grabs the last message from
the queue between the 'queue isEmpty' check and the 'queue next' call.



Notes
(0005283)
andreas   
06-19-06 21:49   
In the repository.