diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-03-06 09:11:59 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-03-06 09:11:59 +0000 |
commit | b531b01b707370df2cf013fc18c70eda62f5b4be (patch) | |
tree | 9891787833c6fc6b7d3a8e7749edb72323bc0bfe /src/mapi/mapi/u_thread.c | |
parent | e640eec9ba9e2ff0e462671f6a3c548d2e0c40cf (diff) |
mapi: _glthread_DECLARE_STATIC_MUTEX is not broken on Windows.
Diffstat (limited to 'src/mapi/mapi/u_thread.c')
-rw-r--r-- | src/mapi/mapi/u_thread.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mapi/mapi/u_thread.c b/src/mapi/mapi/u_thread.c index 138db47b5c..12e748fe8b 100644 --- a/src/mapi/mapi/u_thread.c +++ b/src/mapi/mapi/u_thread.c @@ -113,11 +113,6 @@ u_tsd_set(struct u_tsd *tsd, void *ptr) */ #ifdef WIN32 -static void InsteadOf_exit(int nCode) -{ - DWORD dwErr = GetLastError(); -} - unsigned long u_thread_self(void) { @@ -131,7 +126,7 @@ u_tsd_init(struct u_tsd *tsd) tsd->key = TlsAlloc(); if (tsd->key == TLS_OUT_OF_INDEXES) { perror(INIT_TSD_ERROR); - InsteadOf_exit(-1); + exit(-1); } tsd->initMagic = INIT_MAGIC; } @@ -168,7 +163,7 @@ u_tsd_set(struct u_tsd *tsd, void *ptr) } if (TlsSetValue(tsd->key, ptr) == 0) { perror(SET_TSD_ERROR); - InsteadOf_exit(-1); + exit(-1); } } |