Forum Navigation
Pausing threads in Tango
Posted: 06/22/07 23:03:06Hello,
Being somewhat of a convert to Tango, I was disappointed that the Phobos to Tango migration page said that using Thread.pause() is dangerous and therefore unimplemented. I need the Thread.pause() functionality to pause threads and look at what they're doing (and if that sounds dangerous, it is :P). Arbitrary thread pausing is also useful for implementing task scheduling (i.e. green threading etc.) and garbage collection.
I don't particularly wish to mix Tango *threads* with OS-specific calls to pause threads - so I was wondering how thread pausing could be done otherwise? :P
Vladimir
http://www.vladsharp.com - The Crests of Reason