[rtems-libbsd commit] rtems-bsd-mutex: Update due to API changes
Sebastian Huber
sebh at rtems.org
Wed Apr 6 12:56:17 UTC 2016
Module: rtems-libbsd
Branch: master
Commit: 58c1bf6b5d540abc3273f618ed2199376d320a40
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=58c1bf6b5d540abc3273f618ed2199376d320a40
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Apr 6 14:55:56 2016 +0200
rtems-bsd-mutex: Update due to API changes
---
rtemsbsd/include/machine/rtems-bsd-muteximpl.h | 2 +-
rtemsbsd/rtems/rtems-bsd-muteximpl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rtemsbsd/include/machine/rtems-bsd-muteximpl.h b/rtemsbsd/include/machine/rtems-bsd-muteximpl.h
index 98e9974..bbf0637 100644
--- a/rtemsbsd/include/machine/rtems-bsd-muteximpl.h
+++ b/rtemsbsd/include/machine/rtems-bsd-muteximpl.h
@@ -57,7 +57,7 @@ static inline void
rtems_bsd_mutex_init(struct lock_object *lock, rtems_bsd_mutex *m,
struct lock_class *class, const char *name, const char *type, int flags)
{
- _Thread_queue_Initialize(&m->queue, THREAD_QUEUE_DISCIPLINE_PRIORITY);
+ _Thread_queue_Initialize(&m->queue);
m->owner = NULL;
m->nest_level = 0;
diff --git a/rtemsbsd/rtems/rtems-bsd-muteximpl.c b/rtemsbsd/rtems/rtems-bsd-muteximpl.c
index 51a5338..ff54365 100644
--- a/rtemsbsd/rtems/rtems-bsd-muteximpl.c
+++ b/rtemsbsd/rtems/rtems-bsd-muteximpl.c
@@ -80,7 +80,7 @@ rtems_bsd_mutex_unlock_more(rtems_bsd_mutex *m, Thread_Control *owner,
new_owner = ( *operations->first )( heads );
m->owner = new_owner;
_Thread_queue_Extract_critical(&m->queue, operations,
- new_owner, lock_context);
+ new_owner, NULL, 0, lock_context);
} else {
_Thread_queue_Release(&m->queue, lock_context);
}
More information about the vc
mailing list