Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如我在标题中提到的,当我尝试加入线程时,我得到一个错误。
m_threadid:4615464704,pthread_join 错误:避免资源死锁,线程名称:NetworkWorker
我想知道它是什么样的情况以及解决此问题的任何建议。
谢谢
EDEADLK当您有一个封闭的线程循环尝试相互连接时,会出现此错误 ( )。在最简单的情况下,这要么是一个线程调用pthread_join()自身,要么是两个线程pthread_join()相互调用。
EDEADLK
pthread_join()