synchronization.html

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

HTML
40
字号
<HTML><HEAD><TITLE>Xlib Programming Manual: Enabling or Disabling Synchronization</TITLE></HEAD><BODY><H1 ALIGN=center>11.8.1 Enabling or Disabling Synchronization</H1>When debugging X applications, it often is very convenient to require Xlib to behave synchronouslyso that errors are reported as they occur.The following function lets you disable or enable synchronous behavior.Note that graphics may occur 30 or more times more slowly when synchronization is enabled.<!.IN "_Xdebug">On POSIX-conformant systems,there is also a global variable <B>_Xdebug</B>that, if set to nonzero before starting a program under a debugger, will forcesynchronous library behavior.<P>After completing their work,all Xlib functions that generate protocol requests call what is known asan after function.<B><A HREF="XSetAfterFunction.html">XSetAfterFunction()</A></B>sets which function is to be called.<P>To enable or disable synchronization, use <B><A HREF="XSynchronize.html">XSynchronize()</A></B>.<H5 ALIGN=right><I>Next: <A HREF="default-handlers.html">Using the Default Error Handlers</A></I></H5><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 + -
显示快捷键?