Class __pthread_rwlock_arch_t

java.lang.Object
com.github.elebras1.flecs.__pthread_rwlock_arch_t

public class __pthread_rwlock_arch_t extends Object
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 Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • __readers$layout

      public static final ValueLayout.OfInt __readers$layout()
      Layout for field:
      unsigned int __readers
      
    • __readers$offset

      public static final long __readers$offset()
      Offset for field:
      unsigned int __readers
      
    • __readers

      public static int __readers(MemorySegment struct)
      Getter for field:
      unsigned int __readers
      
    • __readers

      public static void __readers(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __readers
      
    • __writers$layout

      public static final ValueLayout.OfInt __writers$layout()
      Layout for field:
      unsigned int __writers
      
    • __writers$offset

      public static final long __writers$offset()
      Offset for field:
      unsigned int __writers
      
    • __writers

      public static int __writers(MemorySegment struct)
      Getter for field:
      unsigned int __writers
      
    • __writers

      public static void __writers(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __writers
      
    • __wrphase_futex$layout

      public static final ValueLayout.OfInt __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

      public static int __wrphase_futex(MemorySegment struct)
      Getter for field:
      unsigned int __wrphase_futex
      
    • __wrphase_futex

      public static void __wrphase_futex(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __wrphase_futex
      
    • __writers_futex$layout

      public static final ValueLayout.OfInt __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

      public static int __writers_futex(MemorySegment struct)
      Getter for field:
      unsigned int __writers_futex
      
    • __writers_futex

      public static void __writers_futex(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __writers_futex
      
    • __pad3$layout

      public static final ValueLayout.OfInt __pad3$layout()
      Layout for field:
      unsigned int __pad3
      
    • __pad3$offset

      public static final long __pad3$offset()
      Offset for field:
      unsigned int __pad3
      
    • __pad3

      public static int __pad3(MemorySegment struct)
      Getter for field:
      unsigned int __pad3
      
    • __pad3

      public static void __pad3(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __pad3
      
    • __pad4$layout

      public static final ValueLayout.OfInt __pad4$layout()
      Layout for field:
      unsigned int __pad4
      
    • __pad4$offset

      public static final long __pad4$offset()
      Offset for field:
      unsigned int __pad4
      
    • __pad4

      public static int __pad4(MemorySegment struct)
      Getter for field:
      unsigned int __pad4
      
    • __pad4

      public static void __pad4(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __pad4
      
    • __cur_writer$layout

      public static final ValueLayout.OfInt __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

      public static int __cur_writer(MemorySegment struct)
      Getter for field:
      int __cur_writer
      
    • __cur_writer

      public static void __cur_writer(MemorySegment struct, int fieldValue)
      Setter for field:
      int __cur_writer
      
    • __shared$layout

      public static final ValueLayout.OfInt __shared$layout()
      Layout for field:
      int __shared
      
    • __shared$offset

      public static final long __shared$offset()
      Offset for field:
      int __shared
      
    • __shared

      public static int __shared(MemorySegment struct)
      Getter for field:
      int __shared
      
    • __shared

      public static void __shared(MemorySegment struct, int fieldValue)
      Setter for field:
      int __shared
      
    • __rwelision$layout

      public static final ValueLayout.OfByte __rwelision$layout()
      Layout for field:
      signed char __rwelision
      
    • __rwelision$offset

      public static final long __rwelision$offset()
      Offset for field:
      signed char __rwelision
      
    • __rwelision

      public static byte __rwelision(MemorySegment struct)
      Getter for field:
      signed char __rwelision
      
    • __rwelision

      public static void __rwelision(MemorySegment struct, byte fieldValue)
      Setter for field:
      signed char __rwelision
      
    • __pad1$layout

      public static final SequenceLayout __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

      public static MemorySegment __pad1(MemorySegment struct)
      Getter for field:
      unsigned char __pad1[7]
      
    • __pad1

      public static void __pad1(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      unsigned char __pad1[7]
      
    • __pad1$dimensions

      public static long[] __pad1$dimensions()
      Dimensions for array field:
      unsigned char __pad1[7]
      
    • __pad1

      public static byte __pad1(MemorySegment struct, long index0)
      Indexed getter for field:
      unsigned char __pad1[7]
      
    • __pad1

      public static void __pad1(MemorySegment struct, long index0, byte fieldValue)
      Indexed setter for field:
      unsigned char __pad1[7]
      
    • __pad2$layout

      public static final ValueLayout.OfLong __pad2$layout()
      Layout for field:
      unsigned long __pad2
      
    • __pad2$offset

      public static final long __pad2$offset()
      Offset for field:
      unsigned long __pad2
      
    • __pad2

      public static long __pad2(MemorySegment struct)
      Getter for field:
      unsigned long __pad2
      
    • __pad2

      public static void __pad2(MemorySegment struct, long fieldValue)
      Setter for field:
      unsigned long __pad2
      
    • __flags$layout

      public static final ValueLayout.OfInt __flags$layout()
      Layout for field:
      unsigned int __flags
      
    • __flags$offset

      public static final long __flags$offset()
      Offset for field:
      unsigned int __flags
      
    • __flags

      public static int __flags(MemorySegment struct)
      Getter for field:
      unsigned int __flags
      
    • __flags

      public static void __flags(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int __flags
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()