1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

*** empty log message ***

This commit is contained in:
Igor Zlatkovic
2002-04-16 17:57:17 +00:00
parent ea5148dcbe
commit a6f2d90669
11 changed files with 410 additions and 8 deletions

View File

@ -87,7 +87,7 @@ static pthread_key_t globalkey;
static pthread_t mainthread;
static pthread_once_t once_control = PTHREAD_ONCE_INIT;
#elif defined HAVE_WIN32_THREADS
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__BORLANDC__)
static __declspec (thread) xmlGlobalState tlstate;
static __declspec (thread) int tlstate_inited = 0;
#else
@ -330,7 +330,7 @@ xmlNewGlobalState(void)
*/
#ifdef HAVE_WIN32_THREADS
#ifndef _MSC_VER
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
typedef struct _xmlGlobalStateCleanupHelperParams
{
HANDLE thread;
@ -366,7 +366,7 @@ xmlGetGlobalState(void)
}
return (globalval);
#elif defined HAVE_WIN32_THREADS
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__BORLANDC__)
if (!tlstate_inited)
{
tlstate_inited = 1;
@ -525,7 +525,7 @@ xmlOnceInit(void) {
(void) pthread_key_create(&globalkey, xmlFreeGlobalState);
mainthread = pthread_self();
#elif defined HAVE_WIN32_THREADS
#ifndef _MSC_VER
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
globalkey = TlsAlloc ();
#endif /* _MSC_VER */
mainthread = GetCurrentThreadId ();