GLCLIENTWAITSYNC(3G)
hii bestie π youβve landed on the GLCLIENTWAITSYNC(3G) page, and weβre about to make sync-object waiting make sense, no cap. β¨
π NAME π
glClientWaitSync β block and wait for a sync object to become signaled. literally the βchill until this thing is readyβ call, and honestly? iconic. π«Ά
π C SPECIFICATION π
GLenum glClientWaitSync(GLsync sync, GLbitfield flags,
GLuint64 timeout);
β¨ PARAMETERS β¨
syncβ the sync object whose status to wait on. bestie, this is the thing youβre waiting on. πflagsβ a bitfield controlling the command flushing behavior.flagsmay beGL_SYNC_FLUSH_COMMANDS_BIT. πtimeoutβ the timeout, specified in nanoseconds, for which the implementation should wait forsyncto become signaled. yes, nanoseconds, not vibes. β³
π¦ DESCRIPTION π¦
glClientWaitSync causes the client to block and wait for the sync object specified by sync to become signaled. if sync is signaled when glClientWaitSync is called, glClientWaitSync returns immediately, otherwise it will block and wait for up to timeout nanoseconds for sync to become signaled. periodt. π
The return value is one of four status values:
GL_ALREADY_SIGNALEDindicates thatsyncwas signaled at the time thatglClientWaitSyncwas called. already ready, bestie! β¨GL_TIMEOUT_EXPIREDindicates that at leasttimeoutnanoseconds passed andsyncdid not become signaled. oof, timed out. πGL_CONDITION_SATISFIEDindicates thatsyncwas signaled before the timeout expired. slay, it happened in time! πGL_WAIT_FAILEDindicates that an error occurred. Additionally, an OpenGL error will be generated. not the vibe, lowkey. π
πΈ NOTES πΈ
glClientWaitSync is available only if the GL version is 3.2 or greater. no cap, check your version first. ππ¦
π ERRORS π
GL_INVALID_VALUEis generated ifsyncis not the name of an existing sync object. πGL_INVALID_VALUEis generated ifflagscontains any unsupported flag. π©
π VERSION SUPPORT π
under OpenGL Version, for the Function / Feature Name glClientWaitSync: π
2.0:-,2.1:-,3.0:-,3.1:-,3.2:β,3.3:β,4.0:β,4.1:β,4.2:β,4.3:β,4.4:β,4.5:β
π SEE ALSO π
glFenceSync(), glIsSync() glWaitSync() β go give these icons a look too, iykyk. π
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT (again, bestie) π
Copyright Β© 2010-2014 Khronos Group
xoxo, this page was brought to you by the source/version tag [FIXME: source], dated 08/09/2021, signing off as GLCLIENTWAITSYNC(3G) π
β¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms