Class __pthread_rwlock_arch_t
java.lang.Object
com.github.elebras1.flecs.__pthread_rwlock_arch_t
struct __pthread_rwlock_arch_t {
unsigned int __readers;
unsigned int __writers;
unsigned int __wrphase_futex;
unsigned int __writers_futex;
unsigned int __pad3;
unsigned int __pad4;
int __cur_writer;
int __shared;
signed char __rwelision;
unsigned char __pad1[7];
unsigned long __pad2;
unsigned int __flags;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic int__cur_writer(MemorySegment struct) Getter for field:int __cur_writerstatic void__cur_writer(MemorySegment struct, int fieldValue) Setter for field:int __cur_writerstatic final ValueLayout.OfIntLayout for field:int __cur_writerstatic final longOffset for field:int __cur_writerstatic int__flags(MemorySegment struct) Getter for field:unsigned int __flagsstatic void__flags(MemorySegment struct, int fieldValue) Setter for field:unsigned int __flagsstatic final ValueLayout.OfIntLayout for field:unsigned int __flagsstatic final longOffset for field:unsigned int __flagsstatic MemorySegment__pad1(MemorySegment struct) Getter for field:unsigned char __pad1[7]static byte__pad1(MemorySegment struct, long index0) Indexed getter for field:unsigned char __pad1[7]static void__pad1(MemorySegment struct, long index0, byte fieldValue) Indexed setter for field:unsigned char __pad1[7]static void__pad1(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned char __pad1[7]static long[]Dimensions for array field:unsigned char __pad1[7]static final SequenceLayoutLayout for field:unsigned char __pad1[7]static final longOffset for field:unsigned char __pad1[7]static long__pad2(MemorySegment struct) Getter for field:unsigned long __pad2static void__pad2(MemorySegment struct, long fieldValue) Setter for field:unsigned long __pad2static final ValueLayout.OfLongLayout for field:unsigned long __pad2static final longOffset for field:unsigned long __pad2static int__pad3(MemorySegment struct) Getter for field:unsigned int __pad3static void__pad3(MemorySegment struct, int fieldValue) Setter for field:unsigned int __pad3static final ValueLayout.OfIntLayout for field:unsigned int __pad3static final longOffset for field:unsigned int __pad3static int__pad4(MemorySegment struct) Getter for field:unsigned int __pad4static void__pad4(MemorySegment struct, int fieldValue) Setter for field:unsigned int __pad4static final ValueLayout.OfIntLayout for field:unsigned int __pad4static final longOffset for field:unsigned int __pad4static int__readers(MemorySegment struct) Getter for field:unsigned int __readersstatic void__readers(MemorySegment struct, int fieldValue) Setter for field:unsigned int __readersstatic final ValueLayout.OfIntLayout for field:unsigned int __readersstatic final longOffset for field:unsigned int __readersstatic byte__rwelision(MemorySegment struct) Getter for field:signed char __rwelisionstatic void__rwelision(MemorySegment struct, byte fieldValue) Setter for field:signed char __rwelisionstatic final ValueLayout.OfByteLayout for field:signed char __rwelisionstatic final longOffset for field:signed char __rwelisionstatic int__shared(MemorySegment struct) Getter for field:int __sharedstatic void__shared(MemorySegment struct, int fieldValue) Setter for field:int __sharedstatic final ValueLayout.OfIntLayout for field:int __sharedstatic final longOffset for field:int __sharedstatic int__writers(MemorySegment struct) Getter for field:unsigned int __writersstatic void__writers(MemorySegment struct, int fieldValue) Setter for field:unsigned int __writersstatic int__writers_futex(MemorySegment struct) Getter for field:unsigned int __writers_futexstatic void__writers_futex(MemorySegment struct, int fieldValue) Setter for field:unsigned int __writers_futexstatic final ValueLayout.OfIntLayout for field:unsigned int __writers_futexstatic final longOffset for field:unsigned int __writers_futexstatic final ValueLayout.OfIntLayout for field:unsigned int __writersstatic final longOffset for field:unsigned int __writersstatic int__wrphase_futex(MemorySegment struct) Getter for field:unsigned int __wrphase_futexstatic void__wrphase_futex(MemorySegment struct, int fieldValue) Setter for field:unsigned int __wrphase_futexstatic final ValueLayout.OfIntLayout for field:unsigned int __wrphase_futexstatic final longOffset for field:unsigned int __wrphase_futexstatic 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 -
__readers$layout
Layout for field:unsigned int __readers -
__readers$offset
public static final long __readers$offset()Offset for field:unsigned int __readers -
__readers
Getter for field:unsigned int __readers -
__readers
Setter for field:unsigned int __readers -
__writers$layout
Layout for field:unsigned int __writers -
__writers$offset
public static final long __writers$offset()Offset for field:unsigned int __writers -
__writers
Getter for field:unsigned int __writers -
__writers
Setter for field:unsigned int __writers -
__wrphase_futex$layout
Layout for field:unsigned int __wrphase_futex -
__wrphase_futex$offset
public static final long __wrphase_futex$offset()Offset for field:unsigned int __wrphase_futex -
__wrphase_futex
Getter for field:unsigned int __wrphase_futex -
__wrphase_futex
Setter for field:unsigned int __wrphase_futex -
__writers_futex$layout
Layout for field:unsigned int __writers_futex -
__writers_futex$offset
public static final long __writers_futex$offset()Offset for field:unsigned int __writers_futex -
__writers_futex
Getter for field:unsigned int __writers_futex -
__writers_futex
Setter for field:unsigned int __writers_futex -
__pad3$layout
Layout for field:unsigned int __pad3 -
__pad3$offset
public static final long __pad3$offset()Offset for field:unsigned int __pad3 -
__pad3
Getter for field:unsigned int __pad3 -
__pad3
Setter for field:unsigned int __pad3 -
__pad4$layout
Layout for field:unsigned int __pad4 -
__pad4$offset
public static final long __pad4$offset()Offset for field:unsigned int __pad4 -
__pad4
Getter for field:unsigned int __pad4 -
__pad4
Setter for field:unsigned int __pad4 -
__cur_writer$layout
Layout for field:int __cur_writer -
__cur_writer$offset
public static final long __cur_writer$offset()Offset for field:int __cur_writer -
__cur_writer
Getter for field:int __cur_writer -
__cur_writer
Setter for field:int __cur_writer -
__rwelision$layout
Layout for field:signed char __rwelision -
__rwelision$offset
public static final long __rwelision$offset()Offset for field:signed char __rwelision -
__rwelision
Getter for field:signed char __rwelision -
__rwelision
Setter for field:signed char __rwelision -
__pad1$layout
Layout for field:unsigned char __pad1[7] -
__pad1$offset
public static final long __pad1$offset()Offset for field:unsigned char __pad1[7] -
__pad1
Getter for field:unsigned char __pad1[7] -
__pad1
Setter for field:unsigned char __pad1[7] -
__pad1$dimensions
public static long[] __pad1$dimensions()Dimensions for array field:unsigned char __pad1[7] -
__pad1
Indexed getter for field:unsigned char __pad1[7] -
__pad1
Indexed setter for field:unsigned char __pad1[7] -
__pad2$layout
Layout for field:unsigned long __pad2 -
__pad2$offset
public static final long __pad2$offset()Offset for field:unsigned long __pad2 -
__pad2
Getter for field:unsigned long __pad2 -
__pad2
Setter for field:unsigned long __pad2 -
__flags$layout
Layout for field:unsigned int __flags -
__flags$offset
public static final long __flags$offset()Offset for field:unsigned int __flags -
__flags
Getter for field:unsigned int __flags -
__flags
Setter for field:unsigned int __flags -
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()
-