I am using b开发者_StackOverflowoost::recursive_mutex. But when I use try_lock on this for the first time I am getting following error
CollisionAvoidance: /usr/include/boost/thread/pthread/recursive_mutex.hpp:78: bool boost::recursive_mutex::try_lock(): Assertion `!res || res==16' failed.
What is the reason for this?
Found the problem I have tried to lock the mutex before creating it. It did not segfault but failed to acquire...
精彩评论