len3d

  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理
  219 Posts :: 0 Stories :: 370 Comments :: 0 Trackbacks

公告

02 2012 档案

摘要: // 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 阅读(42) | 评论 (1) 编辑