nuttx/sched/pthread
Gregory Nutt a48c784cc4 sched/pthread_cond[timed]wait.c: return special mutex state.
A mutex may be configured with rather exotic options such as recursive, unsafe, etc.  The availability of these mutex options is controlled by configuation settings.  When each option is enabled, additional fields are managed inside of the mutex structure.

pthread_cond_wait() and pthread_timed_wait() do the following atomically:  (1) unlock the mutex, (2) wait for the condition, and (3) restore the mutex lock.  When that lock is restored, pthread_cond_[timed]wait() must also restore the exact configuration of the mutex data structure if these "exotic" features are enabled.
2020-04-06 00:13:05 +01:00
..
Make.defs
pthread_cancel.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_cleanup.c
pthread_completejoin.c
pthread_condbroadcast.c
pthread_condsignal.c
pthread_condtimedwait.c sched/pthread_cond[timed]wait.c: return special mutex state. 2020-04-06 00:13:05 +01:00
pthread_condwait.c sched/pthread_cond[timed]wait.c: return special mutex state. 2020-04-06 00:13:05 +01:00
pthread_create.c
pthread_detach.c
pthread_exit.c
pthread_findjoininfo.c Fix typos in comments and documentation. 2020-03-16 20:01:11 -06:00
pthread_get_stackaddr_np.c
pthread_get_stacksize_np.c
pthread_getaffinity.c
pthread_getschedparam.c
pthread_getspecific.c
pthread_initialize.c Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
pthread_join.c
pthread_keycreate.c
pthread_keydelete.c
pthread_kill.c
pthread_mutex.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_mutexconsistent.c
pthread_mutexdestroy.c Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
pthread_mutexinconsistent.c
pthread_mutexinit.c
pthread_mutextimedlock.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_mutextrylock.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_mutexunlock.c
pthread_release.c
pthread_setaffinity.c
pthread_setschedparam.c
pthread_setschedprio.c
pthread_setspecific.c
pthread_sigmask.c
pthread.h