102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8" standalone="no"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
302f4aeb0Sopenharmony_ci  <head>
402f4aeb0Sopenharmony_ci    <title xmlns:xlink="http://www.w3.org/1999/xlink">eglDestroySync - EGL Reference Pages</title>
502f4aeb0Sopenharmony_ci    <link rel="stylesheet" type="text/css" href="khronos-man.css"/>
602f4aeb0Sopenharmony_ci    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
702f4aeb0Sopenharmony_ci  </head>
802f4aeb0Sopenharmony_ci  <body>
902f4aeb0Sopenharmony_ci    <header/>
1002f4aeb0Sopenharmony_ci    <div class="refentry" id="eglDestroySync">
1102f4aeb0Sopenharmony_ci      <div class="titlepage"/>
1202f4aeb0Sopenharmony_ci      <div class="refnamediv">
1302f4aeb0Sopenharmony_ci        <h2>Name</h2>
1402f4aeb0Sopenharmony_ci        <p>eglDestroySync — 
1502f4aeb0Sopenharmony_ci            Destroy a sync object
1602f4aeb0Sopenharmony_ci        </p>
1702f4aeb0Sopenharmony_ci      </div>
1802f4aeb0Sopenharmony_ci      <div class="refsynopsisdiv">
1902f4aeb0Sopenharmony_ci        <h2>C Specification</h2>
2002f4aeb0Sopenharmony_ci        <div class="funcsynopsis">
2102f4aeb0Sopenharmony_ci          <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
2202f4aeb0Sopenharmony_ci            <tr>
2302f4aeb0Sopenharmony_ci              <td>
2402f4aeb0Sopenharmony_ci                <code class="funcdef">EGLBoolean <strong class="fsfunc">eglDestroySync</strong>(</code>
2502f4aeb0Sopenharmony_ci              </td>
2602f4aeb0Sopenharmony_ci              <td>(EGLDisplay <var class="pdparam">display</var>, </td>
2702f4aeb0Sopenharmony_ci            </tr>
2802f4aeb0Sopenharmony_ci            <tr>
2902f4aeb0Sopenharmony_ci              <td> </td>
3002f4aeb0Sopenharmony_ci              <td>EGLSync <var class="pdparam">sync</var><code>)</code>;</td>
3102f4aeb0Sopenharmony_ci            </tr>
3202f4aeb0Sopenharmony_ci          </table>
3302f4aeb0Sopenharmony_ci          <div class="funcprototype-spacer"> </div>
3402f4aeb0Sopenharmony_ci        </div>
3502f4aeb0Sopenharmony_ci      </div>
3602f4aeb0Sopenharmony_ci      <div class="refsect1" id="parameters">
3702f4aeb0Sopenharmony_ci        <h2>Parameters</h2>
3802f4aeb0Sopenharmony_ci        <div class="variablelist">
3902f4aeb0Sopenharmony_ci          <dl class="variablelist">
4002f4aeb0Sopenharmony_ci            <dt>
4102f4aeb0Sopenharmony_ci              <span class="term">
4202f4aeb0Sopenharmony_ci                <em class="parameter">
4302f4aeb0Sopenharmony_ci                  <code>display</code>
4402f4aeb0Sopenharmony_ci                </em>
4502f4aeb0Sopenharmony_ci              </span>
4602f4aeb0Sopenharmony_ci            </dt>
4702f4aeb0Sopenharmony_ci            <dd>
4802f4aeb0Sopenharmony_ci              <p>
4902f4aeb0Sopenharmony_ci                    Specifies the <abbr class="acronym">EGL</abbr> display connection.
5002f4aeb0Sopenharmony_ci                </p>
5102f4aeb0Sopenharmony_ci            </dd>
5202f4aeb0Sopenharmony_ci            <dt>
5302f4aeb0Sopenharmony_ci              <span class="term">
5402f4aeb0Sopenharmony_ci                <em class="parameter">
5502f4aeb0Sopenharmony_ci                  <code>sync</code>
5602f4aeb0Sopenharmony_ci                </em>
5702f4aeb0Sopenharmony_ci              </span>
5802f4aeb0Sopenharmony_ci            </dt>
5902f4aeb0Sopenharmony_ci            <dd>
6002f4aeb0Sopenharmony_ci              <p>
6102f4aeb0Sopenharmony_ci                    Specifies the sync object to destroy.
6202f4aeb0Sopenharmony_ci                </p>
6302f4aeb0Sopenharmony_ci            </dd>
6402f4aeb0Sopenharmony_ci          </dl>
6502f4aeb0Sopenharmony_ci        </div>
6602f4aeb0Sopenharmony_ci      </div>
6702f4aeb0Sopenharmony_ci      <div class="refsect1" id="description">
6802f4aeb0Sopenharmony_ci        <h2>Description</h2>
6902f4aeb0Sopenharmony_ci        <p>
7002f4aeb0Sopenharmony_ci            <code class="function">eglDestroySync</code> is used to destroy an
7102f4aeb0Sopenharmony_ci            existing sync object.
7202f4aeb0Sopenharmony_ci        </p>
7302f4aeb0Sopenharmony_ci        <p>
7402f4aeb0Sopenharmony_ci            If any <code class="function">eglClientWaitSync</code> or
7502f4aeb0Sopenharmony_ci            <code class="function">eglWaitSync</code> commands are blocking on
7602f4aeb0Sopenharmony_ci            <em class="parameter"><code>sync</code></em> when
7702f4aeb0Sopenharmony_ci            <code class="function">eglDestroySync</code> is called,
7802f4aeb0Sopenharmony_ci            <em class="parameter"><code>sync</code></em> is flagged for deletion and will be
7902f4aeb0Sopenharmony_ci            deleted when the associated fence command or OpenCL event object
8002f4aeb0Sopenharmony_ci            has completed, and <em class="parameter"><code>sync</code></em> is no longer
8102f4aeb0Sopenharmony_ci            blocking any such <code class="function">egl*WaitSync</code> command.
8202f4aeb0Sopenharmony_ci            Otherwise, the sync object is destroyed immediately.
8302f4aeb0Sopenharmony_ci        </p>
8402f4aeb0Sopenharmony_ci        <p>
8502f4aeb0Sopenharmony_ci            If no errors are generated, <code class="constant">EGL_TRUE</code> is
8602f4aeb0Sopenharmony_ci            returned, and <em class="parameter"><code>sync</code></em> will no longer be the
8702f4aeb0Sopenharmony_ci            handle of a valid sync object.
8802f4aeb0Sopenharmony_ci        </p>
8902f4aeb0Sopenharmony_ci      </div>
9002f4aeb0Sopenharmony_ci      <div class="refsect1" id="errors">
9102f4aeb0Sopenharmony_ci        <h2>Errors</h2>
9202f4aeb0Sopenharmony_ci        <p>
9302f4aeb0Sopenharmony_ci            On failure, <code class="function">eglDestroySync</code> returns
9402f4aeb0Sopenharmony_ci            <code class="constant">EGL_FALSE</code>.
9502f4aeb0Sopenharmony_ci        </p>
9602f4aeb0Sopenharmony_ci        <p>
9702f4aeb0Sopenharmony_ci            If <em class="parameter"><code>sync</code></em> is not a valid sync object for
9802f4aeb0Sopenharmony_ci            <em class="parameter"><code>display</code></em>, <code class="constant">EGL_FALSE</code>
9902f4aeb0Sopenharmony_ci            is returned and an <code class="constant">EGL_BAD_PARAMETER</code> error
10002f4aeb0Sopenharmony_ci            is generated.
10102f4aeb0Sopenharmony_ci        </p>
10202f4aeb0Sopenharmony_ci        <p>
10302f4aeb0Sopenharmony_ci            If <em class="parameter"><code>display</code></em> does not match the display
10402f4aeb0Sopenharmony_ci            passed to <code class="function">eglCreateSync</code> when
10502f4aeb0Sopenharmony_ci            <em class="parameter"><code>sync</code></em> was created, the behaviour is
10602f4aeb0Sopenharmony_ci            undefined.
10702f4aeb0Sopenharmony_ci        </p>
10802f4aeb0Sopenharmony_ci      </div>
10902f4aeb0Sopenharmony_ci      <div class="refsect1" id="notes">
11002f4aeb0Sopenharmony_ci        <h2>Notes</h2>
11102f4aeb0Sopenharmony_ci        <p>
11202f4aeb0Sopenharmony_ci            <code class="function">eglDestroySync</code> is available only if the EGL
11302f4aeb0Sopenharmony_ci            version is 1.5 or greater.
11402f4aeb0Sopenharmony_ci        </p>
11502f4aeb0Sopenharmony_ci      </div>
11602f4aeb0Sopenharmony_ci      <div class="refsect1" id="seealso">
11702f4aeb0Sopenharmony_ci        <h2>See Also</h2>
11802f4aeb0Sopenharmony_ci        <p>
11902f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglClientWaitSync.xhtml"><span class="citerefentry"><span class="refentrytitle">eglClientWaitSync</span></span></a>,
12002f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglCreateSync.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateSync</span></span></a>,
12102f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglWaitSync.xhtml"><span class="citerefentry"><span class="refentrytitle">eglWaitSync</span></span></a>
12202f4aeb0Sopenharmony_ci        </p>
12302f4aeb0Sopenharmony_ci      </div>
12402f4aeb0Sopenharmony_ci      <p>
12502f4aeb0Sopenharmony_ci    </p>
12602f4aeb0Sopenharmony_ci      <div class="refsect3" id="copyright">
12702f4aeb0Sopenharmony_ci        <img src="KhronosLogo.jpg"/>
12802f4aeb0Sopenharmony_ci        <p>
12902f4aeb0Sopenharmony_ci            Copyright © 2003-2014 The Khronos Group Inc.
13002f4aeb0Sopenharmony_ci            Permission is hereby granted, free of charge, to any person obtaining a
13102f4aeb0Sopenharmony_ci            copy of this software and/or associated documentation files (the
13202f4aeb0Sopenharmony_ci            "Materials"), to deal in the Materials without restriction, including
13302f4aeb0Sopenharmony_ci            without limitation the rights to use, copy, modify, merge, publish,
13402f4aeb0Sopenharmony_ci            distribute, sublicense, and/or sell copies of the Materials, and to
13502f4aeb0Sopenharmony_ci            permit persons to whom the Materials are furnished to do so, subject to
13602f4aeb0Sopenharmony_ci            the condition that this copyright notice and permission notice shall be included
13702f4aeb0Sopenharmony_ci            in all copies or substantial portions of the Materials.
13802f4aeb0Sopenharmony_ci        </p>
13902f4aeb0Sopenharmony_ci      </div>
14002f4aeb0Sopenharmony_ci      <p>
14102f4aeb0Sopenharmony_ci</p>
14202f4aeb0Sopenharmony_ci    </div>
14302f4aeb0Sopenharmony_ci    <footer/>
14402f4aeb0Sopenharmony_ci  </body>
14502f4aeb0Sopenharmony_ci</html>
146