public class KHRReusableSync
extends java.lang.Object
This extension introduces the concept of "sync objects" into EGL. Sync objects are a synchronization primitive, representing events whose completion can be tested or waited upon. This extension borrows from the GL_ARB_sync extension but introduces a type of sync object known as "reusable sync object" comparable to an OS semaphore. The specification is designed to allow additional types of sync objects to be easily introduced in later extensions.
Reusable sync objects may be used to synchronize activity between threads or between client APIs. Synchronization is accomplished by explicitly changing the status of a reusable object using EGL API commands.
Requires EGL 1.1.
| Modifier and Type | Field and Description |
|---|---|
static int |
EGL_CONDITION_SATISFIED_KHR |
static long |
EGL_FOREVER_KHR |
static long |
EGL_NO_SYNC_KHR |
static int |
EGL_SIGNALED_KHR |
static int |
EGL_SYNC_FLUSH_COMMANDS_BIT_KHR |
static int |
EGL_SYNC_REUSABLE_KHR |
static int |
EGL_SYNC_STATUS_KHR |
static int |
EGL_SYNC_TYPE_KHR |
static int |
EGL_TIMEOUT_EXPIRED_KHR |
static int |
EGL_UNSIGNALED_KHR |
| Modifier and Type | Method and Description |
|---|---|
static int |
eglClientWaitSyncKHR(long dpy,
long sync,
int flags,
long timeout) |
static long |
eglCreateSyncKHR(long dpy,
int type,
int[] attrib_list)
Array version of:
CreateSyncKHR |
static long |
eglCreateSyncKHR(long dpy,
int type,
java.nio.IntBuffer attrib_list) |
static boolean |
eglDestroySyncKHR(long dpy,
long sync) |
static boolean |
eglGetSyncAttribKHR(long dpy,
long sync,
int attribute,
int[] value)
Array version of:
GetSyncAttribKHR |
static boolean |
eglGetSyncAttribKHR(long dpy,
long sync,
int attribute,
java.nio.IntBuffer value) |
static boolean |
eglSignalSyncKHR(long dpy,
long sync,
int mode) |
static long |
neglCreateSyncKHR(long dpy,
int type,
long attrib_list) |
static int |
neglGetSyncAttribKHR(long dpy,
long sync,
int attribute,
long value) |
public static final int EGL_SYNC_STATUS_KHR
public static final int EGL_SIGNALED_KHR
public static final int EGL_UNSIGNALED_KHR
public static final int EGL_TIMEOUT_EXPIRED_KHR
public static final int EGL_CONDITION_SATISFIED_KHR
public static final int EGL_SYNC_TYPE_KHR
public static final int EGL_SYNC_REUSABLE_KHR
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_KHR
public static final long EGL_FOREVER_KHR
public static final long EGL_NO_SYNC_KHR
public static long neglCreateSyncKHR(long dpy,
int type,
long attrib_list)
public static long eglCreateSyncKHR(long dpy,
int type,
@Nullable
java.nio.IntBuffer attrib_list)
public static boolean eglDestroySyncKHR(long dpy,
long sync)
public static int eglClientWaitSyncKHR(long dpy,
long sync,
int flags,
long timeout)
public static boolean eglSignalSyncKHR(long dpy,
long sync,
int mode)
public static int neglGetSyncAttribKHR(long dpy,
long sync,
int attribute,
long value)
public static boolean eglGetSyncAttribKHR(long dpy,
long sync,
int attribute,
java.nio.IntBuffer value)
public static long eglCreateSyncKHR(long dpy,
int type,
@Nullable
int[] attrib_list)
CreateSyncKHRpublic static boolean eglGetSyncAttribKHR(long dpy,
long sync,
int attribute,
int[] value)
GetSyncAttribKHRCopyright LWJGL. All Rights Reserved. License terms.