Dam*_*mon 10
if(pthread_kill(the_thread, 0) == 0)
{
/* still running */
}
Run Code Online (Sandbox Code Playgroud)
请参阅:pthread_kill
注意:使用pthread_kill()测试线程是否仍在运行存在固有风险.请参阅此文章以获得解释: 如何确定pthread是否存活?
| 归档时间: |
|
| 查看次数: |
12335 次 |
| 最近记录: |