Boost logo

Boost Users :

Subject: Re: [Boost-users] Adding a thread to a Singleton class
From: Stephen Torri (storri_at_[hidden])
Date: 2010-01-22 22:46:20


Now this fixed the problem. I will have to study why that is the case
tomorrow. Thanks for pointing out my mistakes.

Stephen

On Fri, 2010-01-22 at 11:09 -0500, Gottlob Frege wrote:
> P.S. you are still not unlocking your mutex when processing the local_queue.
> Try passing the unique_lock into processTraces(lock), then inside:
> 1. assert(lock.owns_lock())
> 2. lock.unlock after copying, but before the for-loop
> 3. lock.lock after for-loop
>
> Tony
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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