rtems-bsd-mutex: Use thread queue name

This commit is contained in:
Sebastian Huber
2017-01-31 09:49:49 +01:00
parent c6b85e8ce8
commit ee94f8a8ea
3 changed files with 5 additions and 1 deletions

View File

@@ -93,7 +93,9 @@ lock_init(struct lock_object *lock, struct lock_class *class, const char *name,
KASSERT(i < LOCK_CLASS_MAX, ("unknown lock class %p", class));
/* Initialize the lock object. */
#ifndef __rtems__
lock->lo_name = name;
#endif /* __rtems__ */
lock->lo_flags |= flags | LO_INITIALIZED;
LOCK_LOG_INIT(lock, 0);
WITNESS_INIT(lock, (type != NULL) ? type : name);

View File

@@ -32,7 +32,9 @@
#define _SYS__LOCK_H_
struct lock_object {
#ifndef __rtems__
const char *lo_name; /* Individual lock name. */
#endif /* __rtems__ */
u_int lo_flags;
#ifndef __rtems__
u_int lo_data; /* General class specific data. */