Home | History | Annotate | Download | only in main

Lines Matching refs:sync

44    /* A sync is a display resource */
56 _eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type,
61 _eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
66 * Increment reference count for the sync.
69 _eglGetSync(_EGLSync *sync)
71 if (sync)
72 _eglGetResource(&sync->Resource);
73 return sync;
78 * Decrement reference count for the sync.
81 _eglPutSync(_EGLSync *sync)
83 return (sync) ? _eglPutResource(&sync->Resource) : EGL_FALSE;
88 * Link a sync to its display and return the handle of the link.
92 _eglLinkSync(_EGLSync *sync)
94 _eglLinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
95 return (EGLSync) sync;
100 * Unlink a linked sync from its display.
103 _eglUnlinkSync(_EGLSync *sync)
105 _eglUnlinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
110 * Lookup a handle to find the linked sync.
111 * Return NULL if the handle has no corresponding linked sync.
116 _EGLSync *sync = (_EGLSync *) handle;
117 if (!dpy || !_eglCheckResource((void *) sync, _EGL_RESOURCE_SYNC, dpy))
118 sync = NULL;
119 return sync;
124 * Return the handle of a linked sync, or EGL_NO_SYNC_KHR.
127 _eglGetSyncHandle(_EGLSync *sync)
129 _EGLResource *res = (_EGLResource *) sync;
131 (EGLSync) sync : EGL_NO_SYNC_KHR;