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"
13 /include "libxmlrpg/xmlTypesC"
15 * xmlMutex are a simple mutual exception locks.
17 d xmlMutexPtr s * based(######typedef######)
19 * xmlRMutex are reentrant mutual exception locks.
21 d xmlRMutexPtr s * based(######typedef######)
23 /include "libxmlrpg/globals"
25 d xmlNewMutex pr extproc('xmlNewMutex')
28 d xmlMutexLock pr extproc('xmlMutexLock')
29 d tok value like(xmlMutexPtr)
31 d xmlMutexUnlock pr extproc('xmlMutexUnlock')
32 d tok value like(xmlMutexPtr)
34 d xmlFreeMutex pr extproc('xmlFreeMutex')
35 d tok value like(xmlMutexPtr)
37 d xmlNewRMutex pr extproc('xmlNewRMutex')
40 d xmlRMutexLock pr extproc('xmlRMutexLock')
41 d tok value like(xmlRMutexPtr)
44 d pr extproc('xmlRMutexUnlock')
45 d tok value like(xmlRMutexPtr)
47 d xmlFreeRMutex pr extproc('xmlFreeRMutex')
48 d tok value like(xmlRMutexPtr)
52 d xmlInitThreads pr extproc('xmlInitThreads')
54 d xmlLockLibrary pr extproc('xmlLockLibrary')
57 d pr extproc('xmlUnlockLibrary')
59 d xmlGetThreadId pr extproc('xmlGetThreadId')
63 d pr extproc('xmlIsMainThread')
66 d xmlCleanupThreads...
67 d pr extproc('xmlCleanupThreads')
69 d xmlGetGlobalState...
70 d pr extproc('xmlGetGlobalState')
71 d like(xmlGlobalStatePtr)
73 /endif XML_THREADS_H__