Module de.ibapl.jnhw.posix
Package de.ibapl.jnhw.posix
Class Signal.Sigevent<T extends OpaqueMemory32>
- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.posix.Signal.Sigevent<T>
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Signal
public static final class Signal.Sigevent<T extends OpaqueMemory32> extends Struct32
POSIX:structure sigevent. TODO this should be opaque base class with a generic class and a JavaCallback class ???
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
Fields Modifier and Type Field Description Signal.Sigval<T>sigev_valueSignal value.-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Constructor Description Sigevent()Sigevent(NativeAddressHolder baseAddress)
-
Method Summary
-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Field Detail
-
sigev_value
public final Signal.Sigval<T extends OpaqueMemory32> sigev_value
Signal value. POSIX:structure sigevents.
-
-
Constructor Detail
-
Sigevent
public Sigevent() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
Sigevent
public Sigevent(NativeAddressHolder baseAddress) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
-
Method Detail
-
offsetof_Sigev_value
public static int offsetof_Sigev_value() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
sizeof
@SizeOf public static int sizeof() throws NoSuchNativeTypeException
Get the real size of struct sigevent natively.- Returns:
- the native value sizeof(struct sigevent).
- Throws:
NoSuchNativeTypeException
-
alignof
@AlignOf public static int alignof() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify
public final int sigev_notify() throws NoSuchNativeTypeExceptionNotification type POSIX:structure sigevents.- Returns:
- the native value of sigev_notify.
- Throws:
NoSuchNativeTypeException
-
sigev_notify
public final void sigev_notify(int value) throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
sigev_signo
public final int sigev_signo() throws NoSuchNativeTypeExceptionSignal number. * POSIX:structure sigevents.- Returns:
- the native value of sigev_signo.
- Throws:
NoSuchNativeTypeException
-
sigev_signo
public final void sigev_signo(int value) throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
sigev_notify_attributes
public final Pthread.Pthread_attr_t sigev_notify_attributes(OpaqueMemory32.OpaqueMemory32Producer<Pthread.Pthread_attr_t,Signal.Sigevent> producer) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_attributes
public final void sigev_notify_attributes(Pthread.Pthread_attr_t value) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_function
public final NativeFunctionPointer sigev_notify_function() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_function
public final void sigev_notify_function(Callback__Sigval_int__V sigev_notify_function) throws NoSuchNativeTypeException
Even if we can get away with an int we dont do this. BIG ENDIAN will acces the other half of the union sigval.sival_ptr for sigval.sival_int.- Parameters:
sigev_notify_function-- Throws:
NoSuchNativeTypeException
-
sigev_notify_function
public final void sigev_notify_function(Callback_Mem_V<T> sigev_notify_function) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_function
public final void sigev_notify_function(Callback_NativeRunnable sigev_notify_function) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_functionAsCallback__Sigval_int__V
public final Callback__Sigval_int__V sigev_notify_functionAsCallback__Sigval_int__V() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_functionAsCallback_PtrOpaqueMemory_V
public final Callback_Mem_V sigev_notify_functionAsCallback_PtrOpaqueMemory_V() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify_functionAsCallback_NativeRunnable
public final Callback_NativeRunnable sigev_notify_functionAsCallback_NativeRunnable() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
sigev_notify2String
public static String sigev_notify2String(int value)
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-