eglGetSyncAttrib.3G - Man Page

Return an attribute of a sync object

C Specification

EGLBoolean eglGetSyncAttrib((EGLDisplay display, EGLSync sync, EGLint attribute, EGLAttrib *value);

Parameters

display

Specifies the EGL display connection​.

sync

Specifies the sync object to query​.

attribute

Specifies the EGL sync object attribute to query​.

value

Returns the requested attribute value​.

Description

eglGetSyncAttrib is used to query attributes of the sync object sync​. Legal values for attribute depend on the type of sync object, as shown in table Table ​1, “ Attributes accepted by eglGetSyncAttrib ”​. Assuming no errors are generated, EGL_TRUE is returned and the value of the queried attribute is returned in *value​.

Table ​1. ​ Attributes accepted by eglGetSyncAttrib

AttributeDescriptionSupported Sync Objects
AttributeDescriptionSupported Sync Objects
EGL_SYNC_TYPEType of the sync objectAll
EGL_SYNC_STATUSStatus of the sync objectAll
EGL_SYNC_CONDITIONSignaling conditionEGL_SYNC_FENCE or
                           EGL_SYNC_CL_EVENT

Errors

On failure, eglGetSyncAttrib returns EGL_FALSE and *value is not modified​.

If sync is not a valid sync object for display, an EGL_BAD_PARAMETER error is generated​.

If attribute is not one of the attributes in table Table ​1, “ Attributes accepted by eglGetSyncAttrib ”, an EGL_BAD_ATTRIBUTE error is generated​.

If attribute is not supported for the type of sync object passed in sync, an EGL_BAD_MATCH error is generated​.

If display does not match the display passed to eglCreateSync when sync was created, behaviour is undefined​.

Notes

eglGetSyncAttrib is available only if the EGL version is 1​.5 or greater​.

See Also

eglCreateSync()

Notes

1.

[set $man.base.url.for.relative.links]/KhronosLogo.jpg

Info

11/15/2026 EGL Reference Pages