我在C++中遇到了一个错误情况,我无法在pthread_join()中调用pthread_join()生成一些信号,但我不知道是哪一个信号,但是我的信号处理程序被调用,并且出于某种原因没有打印出正常调试生成的信号的信息。我没有得到一个堆栈跟踪显示:pthread_join()会导致什么信号?
# 2 /lib/tls/libpthread.so.0: pthread_join(...) +0x1c [0xce439c]
我回顾了手册页在pthread_join(),并没有看到任何信号提。
什么可能是生成的信号,可能是什么原因?这可能是某种竞争条件。
知道失败的原因在这里列出:http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_join.html 顺便说一句,什么是错误? – nullpotent 2012-04-29 01:12:05
@Aljosha更好地使用更新的标准:http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_join.html - 行为现在未定义为无效参数,这意味着信号可能发生而不是错误返回。 – Potatoswatter 2012-04-29 01:57:32
错误值未知。 – WilliamKF 2012-04-29 02:04:14