Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pthread_mutex_lock.c:81: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. #8

Open
zhangmGoL opened this issue Nov 23, 2019 · 1 comment

Comments

@zhangmGoL
Copy link

我移植到嵌入式系统下执行的时候,发现标题中出现的错误,但编译没有任何问题。在执行时会出现这个错误。一旦开启Run()开始执行的时候,就出现了这个错误。

想请问你们有没有遇到过类似的情形呢?

谢谢!

@sprinfall
Copy link
Owner

我们自己没有在嵌入式系统下试过。看你的错误消息应该是 std::mutex 的问题。你把 Server 类里的 mutex 全注释掉再试试?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants