Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 57412a8d9bf4ca2c7b194515af3be5aa1f4bfe85
Ticket: 2835615fffffffffffffffffffffffffffffffff
Pool suspend/resume feature
User & Date: vasiljevic on 2009-08-19 22:12:19
Changes

  1. icomment:
    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 (specifically) but it was
    no question about the usefulness of 
    it in general. I was merely qurious what 
    specific task he needs to address by
    such constructs.
    
    Please check out the head from CVS
    and compile. I updated the doc/tpool.man
    but haven't generated the nroff/html
    part (please just look in the file for docs 
    about those two commands). 
    
    Note that you need to create certain 
    number of worker threads upfront as they
    (i.e. their count) will not be manipulated 
    by the [tpool::resume] NOR [tpoo::post]
    once the work gets posted to the pool.
    
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"