Lines Matching defs:sync
42 /* A sync is a display resource */
52 _eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type,
57 _eglGetSyncAttribKHR(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
62 * Increment reference count for the sync.
65 _eglGetSync(_EGLSync *sync)
67 if (sync)
68 _eglGetResource(&sync->Resource);
69 return sync;
74 * Decrement reference count for the sync.
77 _eglPutSync(_EGLSync *sync)
79 return (sync) ? _eglPutResource(&sync->Resource) : EGL_FALSE;
84 * Link a sync to its display and return the handle of the link.
88 _eglLinkSync(_EGLSync *sync)
90 _eglLinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
91 return (EGLSyncKHR) sync;
96 * Unlink a linked sync from its display.
99 _eglUnlinkSync(_EGLSync *sync)
101 _eglUnlinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
106 * Lookup a handle to find the linked sync.
107 * Return NULL if the handle has no corresponding linked sync.
112 _EGLSync *sync = (_EGLSync *) handle;
113 if (!dpy || !_eglCheckResource((void *) sync, _EGL_RESOURCE_SYNC, dpy))
114 sync = NULL;
115 return sync;
120 * Return the handle of a linked sync, or EGL_NO_SYNC_KHR.
123 _eglGetSyncHandle(_EGLSync *sync)
125 _EGLResource *res = (_EGLResource *) sync;
127 (EGLSyncKHR) sync : EGL_NO_SYNC_KHR;