sprinfall / webcc

Lightweight C++ HTTP client and server library based on Asio for embedding purpose.
GNU Lesser General Public License v3.0
270 stars 61 forks source link

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

Open zhangmGoL opened 4 years ago

zhangmGoL commented 4 years ago

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

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

谢谢!

sprinfall commented 4 years ago

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