-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sched/pthread/pthread_condclockwait.c: follow POSIX.
pthread_condclockwait() can not distinguish between interrupt and timeout, which cause these API not follow POSIX: pthread_rwlock_timedrdlock() pthread_rwlock_timedwrlock() pthread_condtimedwait() POSIX: Upon return from the signal handler the thread resumes waiting for the condition variable as if it wasnot interrupted These functions shall not return an error code of [EINTR]. Replacing nxsem_wait() with nxsem_clockwait_uninterruptible() can solve it. Signed-off-by: jihandong <jihandong@xiaomi.com>
- Loading branch information
Showing
1 changed file
with
40 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters