Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS

extends Struct<CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS {
    struct {
        struct {
            unsigned long long value;
        } fence;
        union {
            void * fence;
            unsigned long long reserved;
        } nvSciSync;
        struct {
            unsigned long long key;
            unsigned int timeoutMs;
        } keyedMutex;
        unsigned int reserved[10];
    } params;
    unsigned int flags;
    unsigned int reserved[16];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLAGS

The struct member offsets.

public static final int
PARAMS

The struct member offsets.

public static final int
PARAMS_FENCE

The struct member offsets.

public static final int
PARAMS_FENCE_VALUE

The struct member offsets.

public static final int
PARAMS_KEYEDMUTEX

The struct member offsets.

public static final int
PARAMS_KEYEDMUTEX_KEY

The struct member offsets.

public static final int
PARAMS_KEYEDMUTEX_TIMEOUTMS

The struct member offsets.

public static final int
PARAMS_NVSCISYNC

The struct member offsets.

public static final int
PARAMS_NVSCISYNC_FENCE

The struct member offsets.

public static final int
PARAMS_NVSCISYNC_RESERVED

The struct member offsets.

public static final int
PARAMS_RESERVED

The struct member offsets.

public static final int
RESERVED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(ByteBuffer container)

Creates a CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
calloc()

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with memCalloc.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with memCalloc.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
create()

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with BufferUtils.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
create(long address)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance for the specified memory address.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
create(int
the buffer capacity
capacity
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with BufferUtils.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance at the specified memory.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
createSafe(long address)

Like create, but returns null if address is NULL.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the flags field.
flags
()

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
flags(int value)

Sets the specified value to the flags field.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
malloc()

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with memAlloc.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with memAlloc.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the specified MemoryStack.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the specified MemoryStack.

public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static long
nparams_fence_value(long struct)

Unsafe version of params_fence_value.

public static void
nparams_fence_value(long struct, long value)

Unsafe version of params_fence_value.

public static long
nparams_keyedMutex_key(long struct)

Unsafe version of params_keyedMutex_key.

public static void
nparams_keyedMutex_key(long struct, long value)

Unsafe version of params_keyedMutex_key.

public static int
public static void
nparams_keyedMutex_timeoutMs(long struct, int value)

Unsafe version of params_keyedMutex_timeoutMs.

public static long
nparams_nvSciSync_fence(long struct)

Unsafe version of params_nvSciSync_fence.

public static void
nparams_nvSciSync_fence(long struct, long value)

Unsafe version of params_nvSciSync_fence.

public static long
public static void
nparams_nvSciSync_reserved(long struct, long value)

Unsafe version of params_nvSciSync_reserved.

public static IntBuffer
nparams_reserved(long struct)

Unsafe version of params_reserved.

public static int
nparams_reserved(long struct, int index)

Unsafe version of params_reserved.

public static void
nparams_reserved(long struct, IntBuffer value)

Unsafe version of params_reserved.

public static void
nparams_reserved(long struct, int index, int value)

Unsafe version of params_reserved.

public static IntBuffer
nreserved(long struct)

Unsafe version of reserved.

public static int
nreserved(long struct, int index)

Unsafe version of reserved.

public static void
nreserved(long struct, IntBuffer value)

Unsafe version of reserved.

public static void
nreserved(long struct, int index, int value)

Unsafe version of reserved.

public long

Returns:

the value of the params.fence.value field.
params_fence_value
()

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_fence_value(long value)

Sets the specified value to the value field.

public long

Returns:

the value of the params.keyedMutex.key field.
params_keyedMutex_key
()

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_keyedMutex_key(long value)

Sets the specified value to the key field.

public int

Returns:

the value of the params.keyedMutex.timeoutMs field.
params_keyedMutex_timeoutMs
()

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_keyedMutex_timeoutMs(int value)

Sets the specified value to the timeoutMs field.

public long

Returns:

the value of the params.nvSciSync.fence field.
params_nvSciSync_fence
()

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_nvSciSync_fence(long value)

Sets the specified value to the fence field.

public long

Returns:

the value of the params.nvSciSync.reserved field.
params_nvSciSync_reserved
()

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_nvSciSync_reserved(long value)

Sets the specified value to the reserved field.

public IntBuffer

Returns:

a IntBuffer view of the params.reserved field.
params_reserved
()

public int

Returns:

the value at the specified index of the params.reserved field.
params_reserved
(int index)

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_reserved(IntBuffer value)

Copies the specified IntBuffer to the reserved field.

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
params_reserved(int index, int value)

Sets the specified value at the specified index of the reserved field.

public IntBuffer

Returns:

a IntBuffer view of the reserved field.
reserved
()

public int

Returns:

the value at the specified index of the reserved field.
reserved
(int index)

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
reserved(IntBuffer value)

Copies the specified IntBuffer to the reserved field.

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
reserved(int index, int value)

Sets the specified value at the specified index of the reserved field.

public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS

Returns:

this struct
set
(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate