Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pthread_rwlock_timedwrlock. #5931

Merged
merged 1 commit into from
May 19, 2022

Commits on May 18, 2022

  1. 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>
    jihandong committed May 18, 2022
    Configuration menu
    Copy the full SHA
    22d307d View commit details
    Browse the repository at this point in the history