diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plist.c b/src/plist.c index f03e125..454d08c 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -69,10 +69,10 @@ typedef volatile struct { | |||
| 69 | int state; | 69 | int state; |
| 70 | } thread_once_t; | 70 | } thread_once_t; |
| 71 | 71 | ||
| 72 | static const thread_once_t init_once = {0, 0}; | 72 | static thread_once_t init_once = {0, 0}; |
| 73 | static const thread_once_t deinit_once = {0, 0}; | 73 | static thread_once_t deinit_once = {0, 0}; |
| 74 | 74 | ||
| 75 | void thread_once(thread_once_t *once_control, void (*init_routine)(void)) | 75 | static void thread_once(thread_once_t *once_control, void (*init_routine)(void)) |
| 76 | { | 76 | { |
| 77 | while (InterlockedExchange(&(once_control->lock), 1) != 0) { | 77 | while (InterlockedExchange(&(once_control->lock), 1) != 0) { |
| 78 | Sleep(1); | 78 | Sleep(1); |
