阅读背景:

在Linux中无限期地睡眠一个线程

来源:互联网 

I want to make a thread sleep for an indefinite amount of time. The reason I want to do this is because my program only takes action when it receives a signal and has nothing to do in the primary thread. Therefore, all processing is done inside the signal handler. How can I sleep for an indefinite amount of time?I want to make a thread sleep for an indefinite




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: