摘要:
// 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)