| typedef void * | EGLSyncKHR |
| typedef khronos_utime_nanoseconds_t | EGLTimeKHR |
| EGLSyncKHR | eglCreateSyncKHR | ( | EGLDisplay | dpy, |
| EGLenum | condition, | |||
| const EGLint * | attrib_list | |||
| ) | ||||
Create a sync object for the specified display.
If <type> is EGL_SYNC_REUSABLE_KHR, a reusable sync object is created. In this case <attrib_list> must be NULL or empty (containing only EGL_NONE).
| Parameters | |
|---|---|
| dpy | Identifier of the display which will own the sync object |
| attrib_list | Attribute-value list specifying attributes of the sync object, terminated by an attribute entry EGL_NONE |
| EGLBoolean | eglDestroySyncKHR | ( | EGLDisplay | dpy, |
| EGLSyncKHR | sync | |||
| ) | ||||
Destroy a sync object and free memory associated with it.
If any eglClientWaitSyncKHR commands are blocking on <sync> when eglDestroySyncKHR is called, they will be woken up, as if <sync> were signaled. If no errors are generated, <sync> will no longer be the handle of a valid sync object.
| Parameters | |
|---|---|
| dpy | Identifier of the display which owns the sync object |
| sync | Sync object handle. |
| EGLint | eglClientWaitSyncKHR | ( | EGLDisplay | dpy, |
| EGLSyncKHR | sync, | |||
| EGLint | flags, | |||
| EGLTimeKHR | timeout | |||
| ) | ||||
Blocks the calling thread until the specified sync object is signaled, or until <timeout> nanoseconds have passed.
| Parameters | |
|---|---|
| dpy | Identifier of the display which owns the sync object. |
| sync | Sync object handle. |
| flags | If the EGL_FLUSH_COMMANDS_BIT_KHR bit is set in <flags> and <sync> is unsignaled when the function is called, then the equivalent of Flush() will be performed for the current API context. |
| timeout | The thread will be unblocked when <timeout> is expired. If the <timeout> is to zero, the function just test the current status of the sync object. If the <timeout> is set to EGL_FOREVER_KHR, then the function does not time out. For all other values, <timeout> is adjusted to the closest value which may be substantially longer than one nanosecond. |
| EGLBoolean | eglSignalSyncKHR | ( | EGLDisplay | dpy, |
| EGLSyncKHR | sync, | |||
| EGLenum | mode | |||
| ) | ||||
Signals or unsignals the reusable sync object.
The error code returned from eglSignalSyncImpl() will be generated
| Parameters | |
|---|---|
| dpy | Identifier of the display which owns the sync object. |
| sync | Sync object handle. |
| mode | Status of the sync object. There are two possible states: EGL_SIGNALED_KHR and EGL_UNSIGNALED_KHR. |
| EGLBoolean | eglGetSyncAttribKHR | ( | EGLDisplay | dpy, |
| EGLSyncKHR | sync, | |||
| EGLint | attribute, | |||
| EGLint * | value | |||
| ) | ||||
Query an attribute of the sync object.
is not a valid pointer; EGL_BAD_ATTRIBUTE if <attribute> does not lie within expected range; EGL_BAD_MATCH if <attribute> is not supported for the type of sync object passed in <sync>
| Parameters | |
|---|---|
| dpy | Identifier of the display which owns the sync object |
| sync | Sync object handle. |
| attribute | An attribute to be retrieved. |
| value | Pointer to the value for the requested attribute which will be filled on function return. |