开发者

Boost Try lock Assert

开发者 https://www.devze.com 2023-01-15 15:46 出处:网络
I am using b开发者_StackOverflowoost::recursive_mutex. But when I use try_lock on this for the first time I am getting following error

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

精彩评论

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