[squeak-dev] Dependencies on Cursor

tim Rowledge tim at rowledge.org
Mon Jun 24 17:24:57 UTC 2013


On 24-06-2013, at 7:57 AM, "Juan Vuletich (mail lists)" <juanlists at jvuletich.org> wrote:

> It should work if you use the MT Cog VM, that allows Squeak to continue running alongside primitives. Never tested it, though.


Given that you are deliberately doing things different in Cuis, perhaps you might consider a new prim to do this even without multi-threading support. The Stack/Cog VMs use a heartbeat timer and it would be pretty simple to add a primitiveLongWaitCursor that took a suitable cursor and a time delay, and after said delay, swapped the cursor. The tricky part would be making it cleanly work in the tick interrupt so that long running primitives don't block it. 

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
An algorithm must be seen to be believed.




More information about the Squeak-dev mailing list