Package org.freedesktop.wayland.raw
Class sigevent
java.lang.Object
org.freedesktop.wayland.raw.sigevent
- Direct Known Subclasses:
sigevent_t
struct sigevent {
__sigval_t sigev_value;
int sigev_signo;
int sigev_notify;
union {
int _pad[12];
__pid_t _tid;
struct {
void (*_function)(__sigval_t);
pthread_attr_t *_attribute;
} _sigev_thread;
} _sigev_un;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classunion { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment_sigev_un(MemorySegment struct) Getter for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_unstatic void_sigev_un(MemorySegment struct, MemorySegment fieldValue) Setter for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_unstatic final GroupLayoutLayout for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_unstatic final longOffset for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_unstatic 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 intsigev_notify(MemorySegment struct) Getter for field:int sigev_notifystatic voidsigev_notify(MemorySegment struct, int fieldValue) Setter for field:int sigev_notifystatic final ValueLayout.OfIntLayout for field:int sigev_notifystatic final longOffset for field:int sigev_notifystatic intsigev_signo(MemorySegment struct) Getter for field:int sigev_signostatic voidsigev_signo(MemorySegment struct, int fieldValue) Setter for field:int sigev_signostatic final ValueLayout.OfIntLayout for field:int sigev_signostatic final longOffset for field:int sigev_signostatic MemorySegmentsigev_value(MemorySegment struct) Getter for field:__sigval_t sigev_valuestatic voidsigev_value(MemorySegment struct, MemorySegment fieldValue) Setter for field:__sigval_t sigev_valuestatic final GroupLayoutLayout for field:__sigval_t sigev_valuestatic final longOffset for field:__sigval_t sigev_valuestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
sigev_value$layout
Layout for field:__sigval_t sigev_value -
sigev_value$offset
public static final long sigev_value$offset()Offset for field:__sigval_t sigev_value -
sigev_value
Getter for field:__sigval_t sigev_value -
sigev_value
Setter for field:__sigval_t sigev_value -
sigev_signo$layout
Layout for field:int sigev_signo -
sigev_signo$offset
public static final long sigev_signo$offset()Offset for field:int sigev_signo -
sigev_signo
Getter for field:int sigev_signo -
sigev_signo
Setter for field:int sigev_signo -
sigev_notify$layout
Layout for field:int sigev_notify -
sigev_notify$offset
public static final long sigev_notify$offset()Offset for field:int sigev_notify -
sigev_notify
Getter for field:int sigev_notify -
sigev_notify
Setter for field:int sigev_notify -
_sigev_un$layout
Layout for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un -
_sigev_un$offset
public static final long _sigev_un$offset()Offset for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un -
_sigev_un
Getter for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un -
_sigev_un
Setter for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un -
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()
-