len3d

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  297 随笔 :: 0 文章 :: 413 评论 :: 18万 阅读

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 阅读(548) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示