📄 xinitthreads.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XInitThreads</TITLE></HEAD><BODY><H1 ALIGN=center>XInitThreads</H1><H2>Syntax</H2><!.IN "XInitThreads" "" "@DEF@"><CODE><PRE><A HREF="../introduction/errors.html#Status">Status</A> XInitThreads();</PRE></CODE><H2>Description</H2>The<B>XInitThreads()</B>function initializes Xlib support for concurrent threads.This function must be the first Xlib function amulti-threaded program calls, and it must completebefore any other Xlib call is made.This function returns a nonzero status if initialization wassuccessful; otherwise, it returns zero.On systems that do not support threads, this function always returns zero.<P>It is only necessary to call this function if multiple threadsmight use Xlib concurrently. If all calls to Xlib functionsare protected by some other access mechanism (for example,a mutual exclusion lock in a toolkit or through explicit clientprogramming), Xlib thread initialization is not required.It is recommended that single-threaded programs not call this function.<H2>See also</H2><A HREF="XLockDisplay.html">XLockDisplay()</A>,<A HREF="XUnlockDisplay.html">XUnlockDisplay()</A>,"<A HREF="threads.html">Using Xlib With Threads</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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -