This error occurs when a thread tries to join itself. In the code snippet provided, the thread with the name "name1" is calling the join() method on a condition variable with the same name. However, since this thread is currently running, it cannot join itself and hence the RuntimeError is raised.

To fix this error, ensure that the thread is not calling join() on itself. One way to do this is to use a different name for the condition variable or to call join() on a different thread.

Exception in thread name1Traceback most recent call last File DAnaconda3envspython3libthreadingpy line 917 in _bootstrap_inner selfrun File DAnaconda3envspython3libthreadingpy line 865 in run

原文地址: https://www.cveoy.top/t/topic/eFyu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录