开发者

pthread_mutex_destroy blocks in infinite loop

开发者 https://www.devze.com 2023-01-12 12:37 出处:网络
I use POSIX threads on iPhone/iPad and when I try to destroy a mutex, pthread_mutex开发者_StackOverflow社区_destroy blocks in infinite loop. I did not find anything about this. It should return an err

I use POSIX threads on iPhone/iPad and when I try to destroy a mutex, pthread_mutex开发者_StackOverflow社区_destroy blocks in infinite loop. I did not find anything about this. It should return an error code...

Do you know something about this?

Thanks!


It's possible that your pthread_mutex_t was locked during the call to pthread_mutex_destroy, as the behavior in that case is undefined.

0

精彩评论

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

关注公众号