|
Boost Users : |
From: Albrecht Fritzsche (albrecht.fritzsche_at_[hidden])
Date: 2002-12-17 05:06:44
olivier_debels wrote:
> msg* pop()
> {
> // Get next message out of the queue
> // While no message found
^^^
> // Check if no other thread is working on such a messagetype
> // If not -> return this message
> // else -> get next message
> }
>
> To check if no other thread is working on such a messagetype, we
> take a look in the map(threadId, message type).
But still, what buys you the threadId? if you would change the check to
Check if noone is working on such a messagetype
and possibly use a set<message_type>, what is missing than?
Ali
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