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]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at