Class __pthread_mutex_s

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

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

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final ValueLayout.OfShort __spins$layout()
      Layout for field:
      short __spins
      
    • __spins$offset

      public static final long __spins$offset()
      Offset for field:
      short __spins
      
    • __spins

      public static short __spins(MemorySegment struct)
      Getter for field:
      short __spins
      
    • __spins

      public static void __spins(MemorySegment struct, short fieldValue)
      Setter for field:
      short __spins
      
    • __elision$layout

      public static final ValueLayout.OfShort __elision$layout()
      Layout for field:
      short __elision
      
    • __elision$offset

      public static final long __elision$offset()
      Offset for field:
      short __elision
      
    • __elision

      public static short __elision(MemorySegment struct)
      Getter for field:
      short __elision
      
    • __elision

      public static void __elision(MemorySegment struct, short fieldValue)
      Setter for field:
      short __elision
      
    • __list$layout

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

      public static MemorySegment __list(MemorySegment struct)
      Getter for field:
      __pthread_list_t __list
      
    • __list

      public static void __list(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      __pthread_list_t __list
      
    • 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()