diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
| commit | b0afb8fe0ff1d87165af9df61501197a06240dda (patch) | |
| tree | 274ac6a96c53ef4c19ab4974ce24a06a233128c5 /gl/windows-once.h | |
| parent | 68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff) | |
| download | monitoring-plugins-b0afb8fe.tar.gz | |
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/windows-once.h')
| -rw-r--r-- | gl/windows-once.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gl/windows-once.h b/gl/windows-once.h index c5bbcd57..b27ae538 100644 --- a/gl/windows-once.h +++ b/gl/windows-once.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Once-only control (native Windows implementation). | 1 | /* Once-only control (native Windows implementation). |
| 2 | Copyright (C) 2005-2024 Free Software Foundation, Inc. | 2 | Copyright (C) 2005-2025 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -25,13 +25,14 @@ | |||
| 25 | 25 | ||
| 26 | typedef struct | 26 | typedef struct |
| 27 | { | 27 | { |
| 28 | volatile int inited; | 28 | volatile LONG inited; |
| 29 | volatile LONG num_threads; | ||
| 29 | volatile LONG started; | 30 | volatile LONG started; |
| 30 | CRITICAL_SECTION lock; | 31 | CRITICAL_SECTION lock; |
| 31 | } | 32 | } |
| 32 | glwthread_once_t; | 33 | glwthread_once_t; |
| 33 | 34 | ||
| 34 | #define GLWTHREAD_ONCE_INIT { -1, -1 } | 35 | #define GLWTHREAD_ONCE_INIT { -1, 0, -1 } |
| 35 | 36 | ||
| 36 | #ifdef __cplusplus | 37 | #ifdef __cplusplus |
| 37 | extern "C" { | 38 | extern "C" { |
