Index: Doc/api/init.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/api/init.tex,v retrieving revision 1.20 diff -c -r1.20 init.tex *** Doc/api/init.tex 19 Aug 2004 11:31:55 -0000 1.20 --- Doc/api/init.tex 10 Oct 2004 18:46:35 -0000 *************** *** 533,538 **** --- 533,546 ---- compile time. \end{cfuncdesc} + \begin{cfuncdesc}{int}{PyEval_ThreadsInitialized}{} + Returns a true value if \cfunction{PyEval_InitThreads} has been called. + This function can be called without holding the lock, and therefore can + be used to avoid calls to the locking API when running single-threaded. + This function is not available when thread support is disabled at compile + time. + \end{cfuncdesc} + \begin{cfuncdesc}{void}{PyEval_AcquireLock}{} Acquire the global interpreter lock. The lock must have been created earlier. If this thread already has the lock, a deadlock