Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/_rmlock.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
struct rm_priotracker { | struct rm_priotracker { | ||||
struct rm_queue rmp_cpuQueue; /* Must be first */ | struct rm_queue rmp_cpuQueue; /* Must be first */ | ||||
struct rmlock *rmp_rmlock; | struct rmlock *rmp_rmlock; | ||||
struct thread *rmp_thread; | struct thread *rmp_thread; | ||||
int rmp_flags; | int rmp_flags; | ||||
LIST_ENTRY(rm_priotracker) rmp_qentry; | LIST_ENTRY(rm_priotracker) rmp_qentry; | ||||
}; | }; | ||||
#include <sys/_mutex.h> | |||||
struct rmslock { | |||||
struct mtx mtx; | |||||
int writers; | |||||
int readers; | |||||
int *readers_pcpu; | |||||
int *readers_influx; | |||||
}; | |||||
#endif /* !_SYS__RMLOCK_H_ */ | #endif /* !_SYS__RMLOCK_H_ */ |