Pause Self, Resume on Event
downs
default_357-line at yahoo.de
Wed Jul 16 14:37:26 PDT 2008
NO NO NO NO NO NO NO.
I tried this once, and _believe me_, you do _not_ want to go down this route.
Use proper threading primitives. By which I mean, tools.threads and its POSIX/Win32 Semaphores and Mutexes.
It even already has a threadpool :)
--downs
PS: The reason you don't want to go down this route is because you're interfering with the GC's own pause/resume schemes and inviting a world of race conditions and hard to find bugs.
More information about the Digitalmars-d-learn
mailing list