-
I have fixed this in CVS HEAD. Please checkout, recompile and try.
2009-08-19 15:26:28 UTC in Tcl
-
vasiljevic committed patchset 608 of module thread to the Tcl CVS repository, changing 2 files.
2009-08-19 15:25:28 UTC in Tcl
-
Hi!
I have just commited the changes for
[tpool::suspend] and [tpool::resume].
First of all: it is really handy! I can imagine
many ways how people would benefit from it.
I even contemplate to add this to the
singleton thread, not just thread pools.
Second: it is trivial to do at the C-level
and (well) clumsy on Tcl.
Third: I said I did not understand why
Barry needed it...
2009-08-19 15:12:19 UTC in Tcl
-
vasiljevic committed patchset 607 of module thread to the Tcl CVS repository, changing 3 files.
2009-08-19 14:58:31 UTC in Tcl
-
Hi!
I believe this is trivially possible. I could just flip a bit in the pool structure that will be examined by every pool worker.
In case bit it set, the worker would spin, otherwise it would service the pool. I could implement this with two commands: [tpool::suspend poolName] and [tpool::resume poolName]. It is also possible to achieve this "from the outside" by making a global mutex and...
2009-08-18 21:30:44 UTC in Tcl