Boost logo

Boost Users :

From: Oliver.Kowalke_at_[hidden]
Date: 2006-08-08 01:48:21


Hello Ovanes,
please look into the boost vault (Concurrent Programming). I think the
defer library fits your needs.
The thread pool pre-spawns N threads which operate on a special queue
(inside of the pool).
If no task (boost::function objects) is queued all threads are set to
sleep - if a task arives the queue one thread is awakened and fetches
the task item from the queue and executes it (after that the thread goes
to sleep again).
The library was originally developed by Simon Meiklejohn. I've added the
queue-stuff.
regards,
Oliver


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net