xsync.html

来自「linux图形界面x liberary手册」· HTML 代码 · 共 71 行

HTML
71
字号
<HTML><HEAD><TITLE>Xlib Programming Manual: XSync</TITLE></HEAD><BODY><H1 ALIGN=center>XSync</H1><!.IN "XSync" "" "@DEF@"><H2>Syntax</H2><CODE><PRE>XSync(<B>display</B>, <B>discard</B>)      <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>;      Bool <B>discard</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>discard</B><TD> Specifies a Boolean value that indicates whether <B>XSync()</B>discards all events on the event queue.</TABLE><H2>Description</H2>The<B>XSync()</B>functionflushes the output buffer and then waits until all requests have been receivedand processed by the X server.Any errors generated must be handled by the error handler.For each protocol error received by Xlib,<B>XSync()</B>calls the client application's error handling routine (see "<A HREF="protocol-errors/default-handlers.html">Using the Default Error Handlers</A>").Any events generated by the server are enqueued into the library's event queue.<P>Finally, if you passed <B>False</B>,<B>XSync()</B>does not discard the events in the queue.If you passed <B>True</B>,<B>XSync()</B>discards all events in the queue,including those events that were on the queue before<B>XSync()</B>was called.Client applications seldom need to call<B>XSync()</B>.<H2>See also</H2><B><A HREF="XEventsQueued.html">XEventsQueued()</A></B>,<B><A HREF="XFlush.html">XFlush()</A></B>,<B><A HREF="XPending.html">XPending()</A></B>,"<A HREF="">Handling the Output Buffer</A>"<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?