|
发表于 2020-3-10 00:30:01
|
显示全部楼层
节自 LDD2
sleep_on_timeout(wait_queue_head_t *queue,
interruptible_sleep_on_timeout(wait_queue_
long timeout);
These two functions behave like the previous two, with
sleep will last no longer than the given timeout period. specified
in "jiffies", which are covered in Chapter 6.
#define HZ 100 代表1秒钟的时钟滴答数
你这个是10ms (1/100s)
|
|