How do I determine if a detached pthread is alive?

后端 未结 3 1144
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 07:39

How do I determine if a detached pthread is still alive ?

I have a communication channel with the thread (a uni-directional queue pointing outwards from the

3条回答
  •  攒了一身酷
    2020-12-01 08:28

    It is probably undefined behaviour when you send a signal to an already dead thread. Your application might crash. see http://sourceware.org/bugzilla/show_bug.cgi?id=4509 and http://udrepper.livejournal.com/16844.html

提交回复
热议问题