Boost logo

Boost Users :

Subject: Re: [Boost-users] [Thread] Strange problem.
From: Germán Diago (germandiago_at_[hidden])
Date: 2011-04-04 10:36:03


>
> You used the *same* lock to lock & unlock the mutex in different threads,
> each thread should use its own lock.

I didn't realize I was doing that wrong. I usually use
lock_guards, which are used inside functions, Then, I have a lock for every
thread. This way I just have one lock for all threads. That was the problem.
Thank you.

>
> _______________________________________________
> 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