开发者

Boost Try lock Assert

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜