|
Boost Users : |
From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2008-04-08 16:03:24
Anteru <newsgroups_at_[hidden]> writes:
> Anthony Williams schrieb:
>> It is not possible to detect a spurious wake: if it was, then the
>> implementation would resume waiting. However, spurious wakes should be rare
>> occurrences.
>
> All right, maybe this could be added to the documentation somewhere.
I'll see if I can word things better.
>> Can you show me some code?
>
> Worker threads are supposed to die as soon as a null-job is encountered.
> The worker threads call executeJob. It works with queueFull_.notifyAll
> () in insertJob, but it fails with notifyOne -- note, this simply pass
> through to the Boost::condition counterparts.
Could you show the code for Lock and Condition? Also, does this happen on
Windows, a pthreads platform or both?
Anthony
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
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