From f249808baa3f4f30386185b53bd6ac053a1272e1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 15 Jul 2019 02:35:56 +0200 Subject: 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. --- lib/windows-timedrecmutex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/windows-timedrecmutex.h') 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 -#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" { -- cgit v1.2.1