Boost logo

Boost Users :

Subject: [Boost-users] boost thread, shared_mutex deadlock
From: George George (g_rambot_at_[hidden])
Date: 2010-09-21 20:08:45


threadA owns a shared_lock on the mutex,
threadB tries to get a unique lock on the mutex and blocks,
threadC tries to get a shared_lock on the mutex and blocks also!!

I guess there is a LIFO kind of stack serving the mutex to the requesting locks. But what happens if threadA depends on threadC in order to complete and release the lock?I n this case I have got a deadlock. Is this a design flow of my app or boost?
                                               



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