Class __pthread_mutex_s
java.lang.Object
com.github.elebras1.flecs.__pthread_mutex_s
struct __pthread_mutex_s {
int __lock;
unsigned int __count;
int __owner;
unsigned int __nusers;
int __kind;
short __spins;
short __elision;
__pthread_list_t __list;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic int__count(MemorySegment struct) Getter for field:unsigned int __countstatic void__count(MemorySegment struct, int fieldValue) Setter for field:unsigned int __countstatic final ValueLayout.OfIntLayout for field:unsigned int __countstatic final longOffset for field:unsigned int __countstatic short__elision(MemorySegment struct) Getter for field:short __elisionstatic void__elision(MemorySegment struct, short fieldValue) Setter for field:short __elisionstatic final ValueLayout.OfShortLayout for field:short __elisionstatic final longOffset for field:short __elisionstatic int__kind(MemorySegment struct) Getter for field:int __kindstatic void__kind(MemorySegment struct, int fieldValue) Setter for field:int __kindstatic final ValueLayout.OfIntLayout for field:int __kindstatic final longOffset for field:int __kindstatic MemorySegment__list(MemorySegment struct) Getter for field:__pthread_list_t __liststatic void__list(MemorySegment struct, MemorySegment fieldValue) Setter for field:__pthread_list_t __liststatic final GroupLayoutLayout for field:__pthread_list_t __liststatic final longOffset for field:__pthread_list_t __liststatic int__lock(MemorySegment struct) Getter for field:int __lockstatic void__lock(MemorySegment struct, int fieldValue) Setter for field:int __lockstatic final ValueLayout.OfIntLayout for field:int __lockstatic final longOffset for field:int __lockstatic int__nusers(MemorySegment struct) Getter for field:unsigned int __nusersstatic void__nusers(MemorySegment struct, int fieldValue) Setter for field:unsigned int __nusersstatic final ValueLayout.OfIntLayout for field:unsigned int __nusersstatic final longOffset for field:unsigned int __nusersstatic int__owner(MemorySegment struct) Getter for field:int __ownerstatic void__owner(MemorySegment struct, int fieldValue) Setter for field:int __ownerstatic final ValueLayout.OfIntLayout for field:int __ownerstatic final longOffset for field:int __ownerstatic short__spins(MemorySegment struct) Getter for field:short __spinsstatic void__spins(MemorySegment struct, short fieldValue) Setter for field:short __spinsstatic final ValueLayout.OfShortLayout for field:short __spinsstatic final longOffset for field:short __spinsstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static final GroupLayoutlayout()The layout of this structstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
__lock$layout
Layout for field:int __lock -
__lock$offset
public static final long __lock$offset()Offset for field:int __lock -
__lock
Getter for field:int __lock -
__lock
Setter for field:int __lock -
__count$layout
Layout for field:unsigned int __count -
__count$offset
public static final long __count$offset()Offset for field:unsigned int __count -
__count
Getter for field:unsigned int __count -
__count
Setter for field:unsigned int __count -
__owner$layout
Layout for field:int __owner -
__owner$offset
public static final long __owner$offset()Offset for field:int __owner -
__owner
Getter for field:int __owner -
__owner
Setter for field:int __owner -
__nusers$layout
Layout for field:unsigned int __nusers -
__nusers$offset
public static final long __nusers$offset()Offset for field:unsigned int __nusers -
__nusers
Getter for field:unsigned int __nusers -
__nusers
Setter for field:unsigned int __nusers -
__kind$layout
Layout for field:int __kind -
__kind$offset
public static final long __kind$offset()Offset for field:int __kind -
__kind
Getter for field:int __kind -
__kind
Setter for field:int __kind -
__spins$layout
Layout for field:short __spins -
__spins$offset
public static final long __spins$offset()Offset for field:short __spins -
__spins
Getter for field:short __spins -
__spins
Setter for field:short __spins -
__elision$layout
Layout for field:short __elision -
__elision$offset
public static final long __elision$offset()Offset for field:short __elision -
__elision
Getter for field:short __elision -
__elision
Setter for field:short __elision -
__list$layout
Layout for field:__pthread_list_t __list -
__list$offset
public static final long __list$offset()Offset for field:__pthread_list_t __list -
__list
Getter for field:__pthread_list_t __list -
__list
Setter for field:__pthread_list_t __list -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-