rtems-bsd-mutex: Update due to API changes

This commit is contained in:
Sebastian Huber 2016-04-06 14:55:56 +02:00
parent c5abeb5866
commit 58c1bf6b5d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}