zephyr/lib/posix
Chris Friedt b0b4c9c3f1 posix: mutex: abstract pthread_mutex_t as uint32_t
Consistent with the change of `pthread_t` from
`struct posix_thread` to `uint32_t`, we can now also abstract
`pthread_mutex_t` as `uint32_t` and separate `struct posix_mutex`
as an implementation detail, hidden from POSIX API consumers.

This change deprecates `PTHREAD_MUTEX_DEFINE()` in favour of the
(standardized) `PTHREAD_MUTEX_INITIALIZER`.

This change introduces `CONFIG_MAX_PTHREAD_MUTEX_COUNT`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-15 05:56:31 +09:00
..
getopt includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
CMakeLists.txt posix: conditionally compile perror pthread_common and nanosleep 2022-09-28 14:06:55 +00:00
Kconfig posix: mutex: abstract pthread_mutex_t as uint32_t 2022-11-15 05:56:31 +09:00
clock.c posix: clock: make tz non-const in gettimeofday 2022-09-03 04:00:37 -04:00
eventfd.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
fs.c lib/posix/fs: fix end-of-dir in readdir 2022-05-13 11:10:04 -07:00
mqueue.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
nanosleep.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
perror.c lib: posix: add perror() implementation 2022-07-04 22:53:36 +02:00
posix_internal.h posix: mutex: abstract pthread_mutex_t as uint32_t 2022-11-15 05:56:31 +09:00
pthread.c posix: pthread: take care with pthread mutex resources 2022-11-15 05:56:31 +09:00
pthread_barrier.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_common.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_cond.c posix: mutex: abstract pthread_mutex_t as uint32_t 2022-11-15 05:56:31 +09:00
pthread_key.c posix: use uint32_t instead of void* for pthread_t 2022-11-02 15:39:44 +09:00
pthread_mutex.c posix: mutex: abstract pthread_mutex_t as uint32_t 2022-11-15 05:56:31 +09:00
pthread_rwlock.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_sched.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
semaphore.c lib: posix: semaphore: use consistent timebase in sem_timedwait 2022-06-24 20:12:05 +02:00
sleep.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
timer.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00