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 heavily from the GL_ARB_sync extension and introduces a type of sync object known as a "fence sync object" comparable to the OpenGL fence sync object. The specification is designed to allow additional types of sync objects to be easily introduced in later extensions.
Fence sync objects have corresponding fence commands, which are inserted into a client API command stream at the time the fence sync is created. A fence sync object is used to wait for completion of the corresponding fence command. This allows applications to request a partial Finish of an API command stream, wherein all commands issued in a particular client API context will be forced to complete before control is returned to the calling thread.
This document describes three different extension strings collectively. The "EGL_KHR_fence_sync" string indicates that fence syncs and the corresponding interfaces (to create and place a fence, destroy, query, and wait on) are supported.
The remaining extensions list valid client APIs for fence syncs. The "GL_OES_EGL_sync" string indicates that a fence sync object can be created in association with a fence command placed in the command stream of a bound OpenGL ES context. The "VG_KHR_EGL_sync" string indicates the same thing for a bound OpenVG context.
Requires EGL 1..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static long | |
| public static long | |
| public static boolean | |
| public static boolean | |
| public static boolean | eglGetSyncAttribKHR(long dpy, long sync, int attribute, int[] value)
Array version of: |
| public static long | |
| public static int |
| EGL_SYNC_CONDITION_KHR | back to summary |
|---|---|
| public static final int EGL_SYNC_CONDITION_KHR | |
| EGL_SYNC_FENCE_KHR | back to summary |
|---|---|
| public static final int EGL_SYNC_FENCE_KHR | |
| EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR | back to summary |
|---|---|
| public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR | |
| KHRFenceSync | back to summary |
|---|---|
| protected KHRFenceSync() | |
| eglClientWaitSyncKHR | back to summary |
|---|---|
public static int eglClientWaitSyncKHR(long dpy, long sync, int flags, long timeout)
| |
| eglCreateSyncKHR | back to summary |
|---|---|
public static long eglCreateSyncKHR(long dpy, int type, IntBuffer attrib_list)
| |
| eglCreateSyncKHR | back to summary |
|---|---|
| public static long eglCreateSyncKHR(long dpy, int type, int[] attrib_list) Array version of:
| |
| eglDestroySyncKHR | back to summary |
|---|---|
public static boolean eglDestroySyncKHR(long dpy, long sync)
| |
| eglGetSyncAttribKHR | back to summary |
|---|---|
public static boolean eglGetSyncAttribKHR(long dpy, long sync, int attribute, IntBuffer value)
| |
| eglGetSyncAttribKHR | back to summary |
|---|---|
| public static boolean eglGetSyncAttribKHR(long dpy, long sync, int attribute, int[] value) Array version of:
| |
| neglCreateSyncKHR | back to summary |
|---|---|
| public static long neglCreateSyncKHR(long dpy, int type, long attrib_list) | |
| neglGetSyncAttribKHR | back to summary |
|---|---|
| public static int neglGetSyncAttribKHR(long dpy, long sync, int attribute, long value) | |