Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 807e8518bd262603b645d1f709ad69a96aa46cbe
Ticket: 2835615fffffffffffffffffffffffffffffffff
Pool suspend/resume feature
User & Date: vasiljevic on 2009-08-19 04:30:44
Changes

  1. icomment:
    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 some simple script-coding but it would be more complicated then the C-level implementation. I cannot promise when but if you need it very fast, then please submit the implementation (it is really
    símple) as a diff and I will apply it. Otherwise I will do it but you will need to be patient for some time...
    
    BTW... I still do not get the reason why you need such functionality...
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"