[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] [threads] extension proposal
From:       <Oliver.Kowalke () qimonda ! com>
Date:       2006-08-08 5:48:21
Message-ID: 5D4F031442F5CB489CF88277DDBACCDD058396C9 () drsse401 ! eu ! infineon ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic