Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?>\r |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r | |
4 | <refentry id="glClientWaitSync">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2010</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>glClientWaitSync</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>glClientWaitSync</refname>\r | |
17 | <refpurpose>block and wait for a sync object to become signaled</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>C Specification</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>GLenum <function>glClientWaitSync</function></funcdef>\r | |
23 | <paramdef>GLsync <parameter>sync</parameter></paramdef>\r | |
24 | <paramdef>GLbitfield <parameter>flags</parameter></paramdef>\r | |
25 | <paramdef>GLuint64 <parameter>timeout</parameter></paramdef>\r | |
26 | </funcprototype>\r | |
27 | </funcsynopsis>\r | |
28 | </refsynopsisdiv>\r | |
29 | <refsect1 id="parameters"><title>Parameters</title>\r | |
30 | <variablelist>\r | |
31 | <varlistentry>\r | |
32 | <term><parameter>sync</parameter></term>\r | |
33 | <listitem>\r | |
34 | <para>\r | |
35 | The sync object whose status to wait on.\r | |
36 | </para>\r | |
37 | </listitem>\r | |
38 | </varlistentry>\r | |
39 | <varlistentry>\r | |
40 | <term><parameter>flags</parameter></term>\r | |
41 | <listitem>\r | |
42 | <para>\r | |
43 | A bitfield controlling the command flushing behavior. <parameter>flags</parameter> may be <constant>GL_SYNC_FLUSH_COMMANDS_BIT</constant>.\r | |
44 | </para>\r | |
45 | </listitem>\r | |
46 | </varlistentry>\r | |
47 | </variablelist>\r | |
48 | <varlistentry>\r | |
49 | <term><parameter>timeout</parameter></term>\r | |
50 | <listitem>\r | |
51 | <para>\r | |
52 | The timeout, specified in nanoseconds, for which the implementation should wait for <parameter>sync</parameter> to become signaled.\r | |
53 | </para>\r | |
54 | </listitem>\r | |
55 | </varlistentry>\r | |
56 | </refsect1>\r | |
57 | <refsect1 id="description"><title>Description</title>\r | |
58 | <para>\r | |
59 | <function>glClientWaitSync</function> causes the client to block and wait for the sync object specified by <parameter>sync</parameter> to become signaled. If\r | |
60 | <parameter>sync</parameter> is signaled when <function>glClientWaitSync</function> is called, <function>glClientWaitSync</function> returns immediately, otherwise\r | |
61 | it will block and wait for up to <parameter>timeout</parameter> nanoseconds for <parameter>sync</parameter> to become signaled.\r | |
62 | </para>\r | |
63 | <para>\r | |
64 | The return value is one of four status values:\r | |
65 | <itemizedlist>\r | |
66 | <listitem>\r | |
67 | <para>\r | |
68 | <constant>GL_ALREADY_SIGNALED</constant> indicates that <parameter>sync</parameter> was signaled at the time that <function>glClientWaitSync</function>\r | |
69 | was called.\r | |
70 | </para>\r | |
71 | </listitem>\r | |
72 | <listitem>\r | |
73 | <para>\r | |
74 | <constant>GL_TIMEOUT_EXPIRED</constant> indicates that at least <parameter>timeout</parameter> nanoseconds passed and <parameter>sync</parameter> did not\r | |
75 | become signaled.\r | |
76 | </para>\r | |
77 | </listitem>\r | |
78 | <listitem>\r | |
79 | <para>\r | |
80 | <constant>GL_CONDITION_SATISFIED</constant> indicates that <parameter>sync</parameter> was signaled before the timeout expired.\r | |
81 | </para>\r | |
82 | </listitem>\r | |
83 | <listitem>\r | |
84 | <para>\r | |
85 | <constant>GL_WAIT_FAILED</constant> indicates that an error occurred. Additionally, an OpenGL error will be generated.\r | |
86 | </para>\r | |
87 | </listitem>\r | |
88 | </itemizedlist>\r | |
89 | </para>\r | |
90 | </refsect1>\r | |
91 | <refsect1 id="notes"><title>Notes</title>\r | |
92 | <para>\r | |
93 | <function>glClientWaitSync</function> is available only if the GL version is 3.2 or greater.\r | |
94 | </para>\r | |
95 | </refsect1>\r | |
96 | <refsect1 id="errors"><title>Errors</title>\r | |
97 | <para>\r | |
98 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>sync</parameter> is not the name of an existing sync object.\r | |
99 | </para>\r | |
100 | <para>\r | |
101 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>flags</parameter> contains any unsupported flag.\r | |
102 | </para>\r | |
103 | </refsect1>\r | |
104 | <refsect1 id="seealso"><title>See Also</title>\r | |
105 | <para>\r | |
106 | <citerefentry><refentrytitle>glFenceSync</refentrytitle></citerefentry>,\r | |
107 | <citerefentry><refentrytitle>glIsSync</refentrytitle></citerefentry>\r | |
108 | <citerefentry><refentrytitle>glWaitSync</refentrytitle></citerefentry>\r | |
109 | </para>\r | |
110 | </refsect1>\r | |
111 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
112 | <para>\r | |
113 | Copyright <trademark class="copyright"></trademark> 2010 Khronos Group.\r | |
114 | This material may be distributed subject to the terms and conditions set forth in\r | |
115 | the Open Publication License, v 1.0, 8 June 1999.\r | |
116 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
117 | </para>\r | |
118 | </refsect1>\r | |
119 | </refentry>\r |