diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 05:05:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 05:05:19 +0000 |
commit | dd6c2fee6e501c9b51c8cce120b4ddc61b9a0b7e (patch) | |
tree | 925e323030fb13e98751efea8913af30f3ac5dcd /src/port/pthread-win32.h | |
parent | Adding upstream version 15.6. (diff) | |
download | postgresql-15-upstream.tar.xz postgresql-15-upstream.zip |
Adding upstream version 15.7.upstream/15.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/port/pthread-win32.h')
-rw-r--r-- | src/port/pthread-win32.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/port/pthread-win32.h b/src/port/pthread-win32.h index 97ccc17..5f33269 100644 --- a/src/port/pthread-win32.h +++ b/src/port/pthread-win32.h @@ -5,7 +5,16 @@ #define __PTHREAD_H typedef ULONG pthread_key_t; -typedef CRITICAL_SECTION *pthread_mutex_t; + +typedef struct pthread_mutex_t +{ + /* initstate = 0: not initialized; 1: init done; 2: init in progress */ + LONG initstate; + CRITICAL_SECTION csection; +} pthread_mutex_t; + +#define PTHREAD_MUTEX_INITIALIZER { 0 } + typedef int pthread_once_t; DWORD pthread_self(void); |