- 论坛徽章:
- 84
|
哦,是的 看man是这样写的:
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
┌──────────┬───────────────┬─────────┐
│Interface │ Attribute │ Value │
├──────────┼───────────────┼─────────┤
│usleep() │ Thread safety │ MT-Safe │
└──────────┴───────────────┴─────────┘
但是这句又提示,跟其他定时器一起用,结果未定义:
The interaction of this function with the SIGALRM signal, and with other timer functions such as alarm(2), sleep(3), nanosleep(2), setitimer(2), timer_create(2), timer_delete(2),
timer_getoverrun(2), timer_gettime(2), timer_settime(2), ualarm(3) is unspecified. |
|