summaryrefslogtreecommitdiff
path: root/lib/windows-timedrecmutex.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-07-15 02:35:56 +0200
committerBruno Haible <bruno@clisp.org>2019-07-15 02:35:56 +0200
commitf249808baa3f4f30386185b53bd6ac053a1272e1 (patch)
tree62a1f8136efc28aa03c4578cde89e5dc68364670 /lib/windows-timedrecmutex.h
parent4af8b82e701319864de974558f49588bba270a46 (diff)
downloadgnulib-f249808baa3f4f30386185b53bd6ac053a1272e1.tar.gz
windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
* lib/windows-initguard.h: Renamed from lib/windows-spinlock.h. (glwthread_initguard_t): Renamed from glwthread_spinlock_t. (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT. * lib/windows-mutex.h: Update. * lib/windows-recmutex.h: Likewise. * lib/windows-timedmutex.h: Likewise. * lib/windows-timedrecmutex.h: Likewise. * lib/windows-cond.h: Likewise. * lib/glthread/lock.h: Likewise. * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove lib/windows-spinlock.h. * modules/windows-recmutex (Files): Likewise. * modules/windows-timedmutex (Files): Likewise. * modules/windows-timedrecmutex (Files): Likewise. * modules/windows-cond (Files): Likewise. * modules/threads-h (Files): Likewise.
Diffstat (limited to 'lib/windows-timedrecmutex.h')
-rw-r--r--lib/windows-timedrecmutex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/windows-timedrecmutex.h b/lib/windows-timedrecmutex.h
index c0d2d3b75a..db64b6f2cf 100644
--- a/lib/windows-timedrecmutex.h
+++ b/lib/windows-timedrecmutex.h
@@ -25,7 +25,7 @@
#include <time.h>
-#include "windows-spinlock.h"
+#include "windows-initguard.h"
/* The native Windows documentation says that CRITICAL_SECTION already
implements a recursive lock. But we need not rely on it: It's easy to
@@ -33,7 +33,7 @@
typedef struct
{
- glwthread_spinlock_t guard; /* protects the initialization */
+ glwthread_initguard_t guard; /* protects the initialization */
DWORD owner;
unsigned long depth;
HANDLE event;
@@ -41,7 +41,7 @@ typedef struct
}
glwthread_timedrecmutex_t;
-#define GLWTHREAD_TIMEDRECMUTEX_INIT { GLWTHREAD_SPINLOCK_INIT, 0, 0 }
+#define GLWTHREAD_TIMEDRECMUTEX_INIT { GLWTHREAD_INITGUARD_INIT, 0, 0 }
#ifdef __cplusplus
extern "C" {