Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/_umtx.h
Show All 29 Lines | |||||
*/ | */ | ||||
#ifndef _SYS__UMTX_H_ | #ifndef _SYS__UMTX_H_ | ||||
#define _SYS__UMTX_H_ | #define _SYS__UMTX_H_ | ||||
#include <sys/_types.h> | #include <sys/_types.h> | ||||
#include <sys/_timespec.h> | #include <sys/_timespec.h> | ||||
struct umtx { | |||||
volatile unsigned long u_owner; /* Owner of the mutex. */ | |||||
}; | |||||
struct umutex { | struct umutex { | ||||
volatile __lwpid_t m_owner; /* Owner of the mutex */ | volatile __lwpid_t m_owner; /* Owner of the mutex */ | ||||
__uint32_t m_flags; /* Flags of the mutex */ | __uint32_t m_flags; /* Flags of the mutex */ | ||||
__uint32_t m_ceilings[2]; /* Priority protect ceiling */ | __uint32_t m_ceilings[2]; /* Priority protect ceiling */ | ||||
__uintptr_t m_rb_lnk; /* Robust linkage */ | __uintptr_t m_rb_lnk; /* Robust linkage */ | ||||
#ifndef __LP64__ | #ifndef __LP64__ | ||||
__uint32_t m_pad; | __uint32_t m_pad; | ||||
#endif | #endif | ||||
Show All 36 Lines |