summaryrefslogtreecommitdiff
path: root/lib/windows-spin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/windows-spin.c')
-rw-r--r--lib/windows-spin.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/windows-spin.c b/lib/windows-spin.c
index b90e7ae9dc..b04829d817 100644
--- a/lib/windows-spin.c
+++ b/lib/windows-spin.c
@@ -1,18 +1,18 @@
/* Spin locks (native Windows implementation).
- Copyright (C) 2019-2020 Free Software Foundation, Inc.
+ Copyright (C) 2019-2024 Free Software Foundation, Inc.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
+ This file is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
+ This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ GNU Lesser General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <https://www.gnu.org/licenses/>. */
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2019. */
@@ -27,6 +27,7 @@ void
glwthread_spin_init (glwthread_spinlock_t *lock)
{
lock->word = 0;
+ MemoryBarrier ();
}
int

Return to:

Send suggestions and report system problems to the System administrator.