Sha256: bd65effcdbdfedad6225564edb627b9c2519913c0cd69956ea52ffbfd59c91dd

Contents?: true

Size: 1.69 KB

Versions: 143

Compression:

Stored size: 1.69 KB

Contents

/**
 * Summary: interfaces for thread handling
 * Description: set of generic threading related routines
 *              should work with pthreads, Windows native or TLS threads
 *
 * Copy: See Copyright for the status of this software.
 *
 * Author: Daniel Veillard
 */

#ifndef __XML_THREADS_H__
#define __XML_THREADS_H__

#include <libxml/xmlversion.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * xmlMutex are a simple mutual exception locks.
 */
typedef struct _xmlMutex xmlMutex;
typedef xmlMutex *xmlMutexPtr;

/*
 * xmlRMutex are reentrant mutual exception locks.
 */
typedef struct _xmlRMutex xmlRMutex;
typedef xmlRMutex *xmlRMutexPtr;

XMLPUBFUN int
			xmlCheckThreadLocalStorage(void);

XMLPUBFUN xmlMutexPtr
			xmlNewMutex	(void);
XMLPUBFUN void
			xmlMutexLock	(xmlMutexPtr tok);
XMLPUBFUN void
			xmlMutexUnlock	(xmlMutexPtr tok);
XMLPUBFUN void
			xmlFreeMutex	(xmlMutexPtr tok);

XMLPUBFUN xmlRMutexPtr
			xmlNewRMutex	(void);
XMLPUBFUN void
			xmlRMutexLock	(xmlRMutexPtr tok);
XMLPUBFUN void
			xmlRMutexUnlock	(xmlRMutexPtr tok);
XMLPUBFUN void
			xmlFreeRMutex	(xmlRMutexPtr tok);

/*
 * Library wide APIs.
 */
XML_DEPRECATED
XMLPUBFUN void
			xmlInitThreads	(void);
XMLPUBFUN void
			xmlLockLibrary	(void);
XMLPUBFUN void
			xmlUnlockLibrary(void);
XML_DEPRECATED
XMLPUBFUN int
			xmlGetThreadId	(void);
XML_DEPRECATED
XMLPUBFUN int
			xmlIsMainThread	(void);
XML_DEPRECATED
XMLPUBFUN void
			xmlCleanupThreads(void);

/** DOC_DISABLE */
#if defined(LIBXML_THREAD_ENABLED) && defined(_WIN32) && \
    defined(LIBXML_STATIC_FOR_DLL)
int
xmlDllMain(void *hinstDLL, unsigned long fdwReason,
           void *lpvReserved);
#endif
/** DOC_ENABLE */

#ifdef __cplusplus
}
#endif


#endif /* __XML_THREADS_H__ */

Version data entries

143 entries across 143 versions & 7 rubygems

Version Path
nokogiri-1.16.6-x86-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.6-x64-mingw32 ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.6-x64-mingw-ucrt ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.6-arm64-darwin ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.6-arm-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.6-aarch64-linux ext/nokogiri/include/libxml2/libxml/threads.h
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.5-x86_64-linux/ext/nokogiri/include/libxml2/libxml/threads.h
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.5-x86_64-linux/ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-x86_64-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-x86_64-darwin ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-x86-mingw32 ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-x86-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-x64-mingw32 ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-x64-mingw-ucrt ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-arm64-darwin ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-arm-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.4-aarch64-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.3-x86_64-linux ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.3-x86_64-darwin ext/nokogiri/include/libxml2/libxml/threads.h
nokogiri-1.16.3-x86-mingw32 ext/nokogiri/include/libxml2/libxml/threads.h