Commit db4954a6 authored by Jan Kiszka's avatar Jan Kiszka Committed by Philippe Gerum

Revert "boilerplate/hash: drop preposterous PI for locking"

This reverts commit 0f19393b.

No reason was given back then, and we there is the risk that this code
is used by prio-sensitive threads. Moreover, pvhash still used PI -
unless it is mapped on plain hash in case of !CONFIG_XENO_PSHARED.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 73de42cc
......@@ -101,6 +101,7 @@ void __hash_init(void *heap, struct hash_table *t)
pthread_mutexattr_init(&mattr);
pthread_mutexattr_settype(&mattr, mutex_type_attribute);
pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
pthread_mutexattr_setpshared(&mattr, mutex_scope_attribute);
__RT(pthread_mutex_init(&t->lock, &mattr));
pthread_mutexattr_destroy(&mattr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment