>>> But since its non-atomic, a process can be interrupted and such operation >>> is not thread-safe. >> >> As far as I know the VM only preempts on back-jumps and message sends. >> None of that exists in your code snipped, so it should be atomic. No? >> > > This is a bit blurry. I remember Eliot said it is no longer true under Cog VM.
Then let's just pray that the method comment of Semaphore>>#critical: is outdated and the implementation is fixed. Lukas -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
