ReactOS  0.4.14-dev-98-gb0d4763
threads.h
Go to the documentation of this file.
1 
11 #ifndef __XML_THREADS_H__
12 #define __XML_THREADS_H__
13 
14 #include <libxml/xmlversion.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 /*
21  * xmlMutex are a simple mutual exception locks.
22  */
23 typedef struct _xmlMutex xmlMutex;
25 
26 /*
27  * xmlRMutex are reentrant mutual exception locks.
28  */
29 typedef struct _xmlRMutex xmlRMutex;
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 #include <libxml/globals.h>
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
40  xmlNewMutex (void);
41 XMLPUBFUN void XMLCALL
43 XMLPUBFUN void XMLCALL
45 XMLPUBFUN void XMLCALL
47 
49  xmlNewRMutex (void);
50 XMLPUBFUN void XMLCALL
52 XMLPUBFUN void XMLCALL
54 XMLPUBFUN void XMLCALL
56 
57 /*
58  * Library wide APIs.
59  */
60 XMLPUBFUN void XMLCALL
61  xmlInitThreads (void);
62 XMLPUBFUN void XMLCALL
63  xmlLockLibrary (void);
64 XMLPUBFUN void XMLCALL
65  xmlUnlockLibrary(void);
67  xmlGetThreadId (void);
69  xmlIsMainThread (void);
70 XMLPUBFUN void XMLCALL
71  xmlCleanupThreads(void);
73  xmlGetGlobalState(void);
74 
75 #ifdef HAVE_PTHREAD_H
76 #elif defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
77 #if defined(LIBXML_STATIC_FOR_DLL)
78 int XMLCALL
79 xmlDllMain(void *hinstDLL, unsigned long fdwReason,
80  void *lpvReserved);
81 #endif
82 #endif
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 
89 #endif /* __XML_THREADS_H__ */
XMLPUBFUN xmlRMutexPtr XMLCALL xmlNewRMutex(void)
Definition: threads.c:285
XMLPUBFUN void XMLCALL xmlRMutexLock(xmlRMutexPtr tok)
Definition: threads.c:343
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:764
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:257
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:229
XMLPUBFUN void XMLCALL xmlLockLibrary(void)
Definition: threads.c:828
#define XMLPUBFUN
Definition: xmlexports.h:30
static IN DWORD IN LPVOID lpvReserved
XMLPUBFUN int XMLCALL xmlIsMainThread(void)
Definition: threads.c:793
xmlRMutex * xmlRMutexPtr
Definition: threads.h:30
XMLPUBFUN void XMLCALL xmlCleanupThreads(void)
Definition: threads.c:908
XMLPUBFUN void XMLCALL xmlInitThreads(void)
Definition: threads.c:858
XMLPUBFUN void XMLCALL xmlUnlockLibrary(void)
Definition: threads.c:843
XMLPUBFUN void XMLCALL xmlRMutexUnlock(xmlRMutexPtr tok)
Definition: threads.c:388
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:206
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:654
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:177
#define XMLCALL
xmlMutex * xmlMutexPtr
Definition: threads.h:24
XMLPUBFUN void XMLCALL xmlFreeRMutex(xmlRMutexPtr tok)
Definition: threads.c:319