mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-06 14:14:11 +08:00
rtems-bsd-mutex: Update due to API changes
This commit is contained in:
parent
c5abeb5866
commit
58c1bf6b5d
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user