None of the callers that run into the locks have RT requirements.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
---

As noted before, I think we should even be fine with STD locks, but that
may require more changes.

 lib/copperplate/registry.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c
index daefa6c97..1bf0ebfea 100644
--- a/lib/copperplate/registry.c
+++ b/lib/copperplate/registry.c
@@ -175,7 +175,6 @@ int registry_init_file(struct fsobj *fsobj,
 
        pthread_mutexattr_init(&mattr);
        pthread_mutexattr_settype(&mattr, mutex_type_attribute);
-       pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
        pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_PRIVATE);
        ret = __bt(-__RT(pthread_mutex_init(&fsobj->lock, &mattr)));
        pthread_mutexattr_destroy(&mattr);
@@ -758,7 +757,6 @@ int __registry_pkg_init(const char *arg0, char *mountpt, 
int flags)
 
        pthread_mutexattr_init(&mattr);
        pthread_mutexattr_settype(&mattr, mutex_type_attribute);
-       pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
        pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_PRIVATE);
        ret = __bt(-__RT(pthread_mutex_init(&p->lock, &mattr)));
        pthread_mutexattr_destroy(&mattr);

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to