This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
usleep() can't schedule thread and where is the definition offunction __mach_reply_port?
- From: Neil <freeordie dot k at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Tue, 10 Jul 2012 16:40:46 +0800
- Subject: usleep() can't schedule thread and where is the definition offunction __mach_reply_port?
Hi All,
I meet a problem that on routerstation the main thread call
usleep(100) try to schedule the child thread, but the child thread
doesn't run sometimes. If main thread call usleep(1000) then the child
thread will always scheduled. Does anybody meet this problem before?
Then I check the usleep() code, find that it calls __nanosleep(). In
__nanosleep(), it seems to call function __mach_reply_port() to handle
the sleep. But I don't find the definition of __mach_reply_port(),
there just a declaration in mach/mach/mach_traps.h.
Any comment is appreciate.
--
Regards,
Neil