genode/repos/libports/src/lib/pthread
Alexander Senier 43faf63fde pthread: fix deadlock in pthread_rwlock_*
Properly initialize and reset the _owner member, otherwise
correlating the unlock operation with the respective read/write
lock does not work.

Move locking the _nbr_mutex in the unlock operation after the
owner check. Otherwise, a reader holding that mutex and waiting
for the write lock would deadlock a writer trying to unlock the
_global_mutex.

Ref. Componolit/componolit#86
Ref. #2656
Fixes #2832
2018-05-30 13:36:32 +02:00
..
rwlock.cc pthread: fix deadlock in pthread_rwlock_* 2018-05-30 13:36:32 +02:00
semaphore.cc pthread: fix deprecated warnings 2017-05-31 13:15:54 +02:00
thread_create.cc pthread: remove 'pthread_attr' from pthread class 2018-05-30 13:36:05 +02:00
thread.cc pthread: retrieve stack address and size 2018-05-30 13:36:06 +02:00
thread.h pthread: remove 'pthread_attr' from pthread class 2018-05-30 13:36:05 +02:00