1 * Summary: interfaces for thread handling
2 * Description: set of generic threading related routines
3 * should work with pthreads, Windows native or TLS threads
5 * Copy: See Copyright for the status of this software.
7 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
9 /if not defined(XML_THREADS_H__)
10 /define XML_THREADS_H__
12 /include "libxmlrpg/xmlversion"
14 * xmlMutex are a simple mutual exception locks.
16 d xmlMutexPtr s * based(######typedef######)
18 * xmlRMutex are reentrant mutual exception locks.
20 d xmlRMutexPtr s * based(######typedef######)
22 /include "libxmlrpg/globals"
24 d xmlNewMutex pr extproc('xmlNewMutex')
27 d xmlMutexLock pr extproc('xmlMutexLock')
28 d tok value like(xmlMutexPtr)
30 d xmlMutexUnlock pr extproc('xmlMutexUnlock')
31 d tok value like(xmlMutexPtr)
33 d xmlFreeMutex pr extproc('xmlFreeMutex')
34 d tok value like(xmlMutexPtr)
36 d xmlNewRMutex pr extproc('xmlNewRMutex')
39 d xmlRMutexLock pr extproc('xmlRMutexLock')
40 d tok value like(xmlRMutexPtr)
43 d pr extproc('xmlRMutexUnlock')
44 d tok value like(xmlRMutexPtr)
46 d xmlFreeRMutex pr extproc('xmlFreeRMutex')
47 d tok value like(xmlRMutexPtr)
51 d xmlInitThreads pr extproc('xmlInitThreads')
53 d xmlLockLibrary pr extproc('xmlLockLibrary')
56 d pr extproc('xmlUnlockLibrary')
58 d xmlGetThreadId pr 10i 0 extproc('xmlGetThreadId')
61 d pr 10i 0 extproc('xmlIsMainThread')
63 d xmlCleanupThreads...
64 d pr extproc('xmlCleanupThreads')
66 d xmlGetGlobalState...
67 d pr extproc('xmlGetGlobalState')
68 d like(xmlGlobalStatePtr)
70 /endif XML_THREADS_H__