内核态usleep

This commit is contained in:
fslongjin
2022-07-18 21:19:45 +08:00
parent 16d6b94c46
commit e7fb6df203
3 changed files with 32 additions and 1 deletions

View File

@ -14,3 +14,10 @@
*/
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
/**
* @brief 睡眠指定时间
*
* @param usec 微秒
* @return int
*/
int usleep(useconds_t usec);