ReactOS  0.4.15-dev-5492-g47f3a4e
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  */
61 XMLPUBFUN void XMLCALL
62  xmlInitThreads (void);
63 XMLPUBFUN void XMLCALL
64  xmlLockLibrary (void);
65 XMLPUBFUN void XMLCALL
66  xmlUnlockLibrary(void);
68  xmlGetThreadId (void);
70  xmlIsMainThread (void);
72 XMLPUBFUN void XMLCALL
73  xmlCleanupThreads(void);
75  xmlGetGlobalState(void);
76 
77 #ifdef HAVE_PTHREAD_H
78 #elif defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
79 #if defined(LIBXML_STATIC_FOR_DLL)
80 int XMLCALL
81 xmlDllMain(void *hinstDLL, unsigned long fdwReason,
82  void *lpvReserved);
83 #endif
84 #endif
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 
91 #endif /* __XML_THREADS_H__ */
XMLPUBFUN xmlRMutexPtr XMLCALL xmlNewRMutex(void)
Definition: threads.c:276
#define XML_DEPRECATED
Definition: xmlversion.h:494
XMLPUBFUN void XMLCALL xmlRMutexLock(xmlRMutexPtr tok)
Definition: threads.c:333
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:750
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:248
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:220
XMLPUBFUN void XMLCALL xmlLockLibrary(void)
Definition: threads.c:814
#define XMLPUBFUN
Definition: xmlexports.h:61
static IN DWORD IN LPVOID lpvReserved
XMLPUBFUN int XMLCALL xmlIsMainThread(void)
Definition: threads.c:779
xmlRMutex * xmlRMutexPtr
Definition: threads.h:30
XML_DEPRECATED XMLPUBFUN void XMLCALL xmlInitThreads(void)
Definition: threads.c:847
XMLPUBFUN void XMLCALL xmlUnlockLibrary(void)
Definition: threads.c:829
XMLPUBFUN void XMLCALL xmlRMutexUnlock(xmlRMutexPtr tok)
Definition: threads.c:377
XML_DEPRECATED XMLPUBFUN void XMLCALL xmlCleanupThreads(void)
Definition: threads.c:900
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:197
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:640
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:168
#define XMLCALL
xmlMutex * xmlMutexPtr
Definition: threads.h:24
XMLPUBFUN void XMLCALL xmlFreeRMutex(xmlRMutexPtr tok)
Definition: threads.c:309