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 class
union { 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_un
static 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_un
static final GroupLayout
Layout for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un
static final long
Offset for field:union { int _pad[12]; __pid_t _tid; struct { void (*_function)(__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un
static MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static final GroupLayout
layout()
The layout of this structstatic MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static int
sigev_notify
(MemorySegment struct) Getter for field:int sigev_notify
static void
sigev_notify
(MemorySegment struct, int fieldValue) Setter for field:int sigev_notify
static final ValueLayout.OfInt
Layout for field:int sigev_notify
static final long
Offset for field:int sigev_notify
static int
sigev_signo
(MemorySegment struct) Getter for field:int sigev_signo
static void
sigev_signo
(MemorySegment struct, int fieldValue) Setter for field:int sigev_signo
static final ValueLayout.OfInt
Layout for field:int sigev_signo
static final long
Offset for field:int sigev_signo
static MemorySegment
sigev_value
(MemorySegment struct) Getter for field:__sigval_t sigev_value
static void
sigev_value
(MemorySegment struct, MemorySegment fieldValue) Setter for field:__sigval_t sigev_value
static final GroupLayout
Layout for field:__sigval_t sigev_value
static final long
Offset for field:__sigval_t sigev_value
static long
sizeof()
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 ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-