ReactOS 0.4.15-dev-8102-g108db8f
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
17extern "C" {
18#endif
19
20/*
21 * xmlMutex are a simple mutual exception locks.
22 */
23typedef struct _xmlMutex xmlMutex;
25
26/*
27 * xmlRMutex are reentrant mutual exception locks.
28 */
29typedef struct _xmlRMutex xmlRMutex;
31
32#ifdef __cplusplus
33}
34#endif
35#include <libxml/globals.h>
36#ifdef __cplusplus
37extern "C" {
38#endif
40 xmlNewMutex (void);
47
49 xmlNewRMutex (void);
56
57/*
58 * Library wide APIs.
59 */
62 xmlInitThreads (void);
64 xmlLockLibrary (void);
66 xmlUnlockLibrary(void);
68 xmlGetThreadId (void);
70 xmlIsMainThread (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)
80int XMLCALL
81xmlDllMain(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__ */
#define XMLCALL
static IN DWORD IN LPVOID lpvReserved
XMLPUBFUN void XMLCALL xmlMutexUnlock(xmlMutexPtr tok)
Definition: threads.c:248
XMLPUBFUN void XMLCALL xmlRMutexLock(xmlRMutexPtr tok)
Definition: threads.c:333
xmlMutex * xmlMutexPtr
Definition: threads.h:24
XMLPUBFUN xmlGlobalStatePtr XMLCALL xmlGetGlobalState(void)
Definition: threads.c:640
XMLPUBFUN xmlMutexPtr XMLCALL xmlNewMutex(void)
Definition: threads.c:168
XML_DEPRECATED XMLPUBFUN void XMLCALL xmlCleanupThreads(void)
Definition: threads.c:900
XMLPUBFUN void XMLCALL xmlFreeRMutex(xmlRMutexPtr tok)
Definition: threads.c:309
XMLPUBFUN xmlRMutexPtr XMLCALL xmlNewRMutex(void)
Definition: threads.c:276
XMLPUBFUN void XMLCALL xmlFreeMutex(xmlMutexPtr tok)
Definition: threads.c:197
XMLPUBFUN int XMLCALL xmlGetThreadId(void)
Definition: threads.c:750
XMLPUBFUN void XMLCALL xmlLockLibrary(void)
Definition: threads.c:814
XMLPUBFUN int XMLCALL xmlIsMainThread(void)
Definition: threads.c:779
XML_DEPRECATED XMLPUBFUN void XMLCALL xmlInitThreads(void)
Definition: threads.c:847
xmlRMutex * xmlRMutexPtr
Definition: threads.h:30
XMLPUBFUN void XMLCALL xmlMutexLock(xmlMutexPtr tok)
Definition: threads.c:220
XMLPUBFUN void XMLCALL xmlUnlockLibrary(void)
Definition: threads.c:829
XMLPUBFUN void XMLCALL xmlRMutexUnlock(xmlRMutexPtr tok)
Definition: threads.c:377
#define XMLPUBFUN
Definition: xmlexports.h:61
#define XML_DEPRECATED
Definition: xmlversion.h:494