mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 00:39:54 +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,
|
rtems_bsd_mutex_init(struct lock_object *lock, rtems_bsd_mutex *m,
|
||||||
struct lock_class *class, const char *name, const char *type, int flags)
|
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->owner = NULL;
|
||||||
m->nest_level = 0;
|
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 );
|
new_owner = ( *operations->first )( heads );
|
||||||
m->owner = new_owner;
|
m->owner = new_owner;
|
||||||
_Thread_queue_Extract_critical(&m->queue, operations,
|
_Thread_queue_Extract_critical(&m->queue, operations,
|
||||||
new_owner, lock_context);
|
new_owner, NULL, 0, lock_context);
|
||||||
} else {
|
} else {
|
||||||
_Thread_queue_Release(&m->queue, lock_context);
|
_Thread_queue_Release(&m->queue, lock_context);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user