len3d

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年2月11日

摘要: // at process start call init_pthread_suspending to install the handlers// to suspend a thread use pthread_kill(thread_id, SUSPEND_SIG)// to resume a thread use pthread_kill(thread_id, RESUME_SIG)#include <signal.h>#define RESUME_SIG SIGUSR2#define SUSPEND_SIG SIGUSR1static sigset_t wait_mask; 阅读全文
posted @ 2012-02-11 00:08 Len3d 阅读(557) 评论(1) 推荐(0)