mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 00:38:39 +08:00
RWLOCK(9): Add reader/writer lock implementation
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#ifndef _SYS__RWLOCK_H_
|
||||
#define _SYS__RWLOCK_H_
|
||||
#ifdef __rtems__
|
||||
#include <machine/rtems-bsd-mutex.h>
|
||||
#include <machine/rtems-bsd-rwlock.h>
|
||||
#endif /* __rtems__ */
|
||||
|
||||
#include <machine/param.h>
|
||||
@@ -48,7 +48,7 @@ struct rwlock {
|
||||
#ifndef __rtems__
|
||||
volatile uintptr_t rw_lock;
|
||||
#else /* __rtems__ */
|
||||
rtems_bsd_mutex mutex;
|
||||
rtems_bsd_rwlock rwlock;
|
||||
#endif /* __rtems__ */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user