projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fnmatch: don't goto over declaration
[gnulib.git]
/
lib
/
glthread
/
lock.c
diff --git
a/lib/glthread/lock.c
b/lib/glthread/lock.c
index
2cf394e
..
81908f0
100644
(file)
--- a/
lib/glthread/lock.c
+++ b/
lib/glthread/lock.c
@@
-1,5
+1,5
@@
/* Locking in multithreaded situations.
/* Locking in multithreaded situations.
- Copyright (C) 2005-201
2
Free Software Foundation, Inc.
+ Copyright (C) 2005-201
3
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
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
@@
-12,8
+12,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ along with this program; if not, see <http://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2005.
Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
/* Written by Bruno Haible <bruno@clisp.org>, 2005.
Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
@@
-630,7
+629,7
@@
glthread_once_singlethreaded (gl_once_t *once_control)
/* ========================================================================= */
/* ========================================================================= */
-#if USE_WIN
32
_THREADS
+#if USE_WIN
DOWS
_THREADS
/* -------------------------- gl_lock_t datatype -------------------------- */
/* -------------------------- gl_lock_t datatype -------------------------- */
@@
-683,7
+682,7
@@
glthread_lock_destroy_func (gl_lock_t *lock)
/* In this file, the waitqueues are implemented as circular arrays. */
#define gl_waitqueue_t gl_carray_waitqueue_t
/* In this file, the waitqueues are implemented as circular arrays. */
#define gl_waitqueue_t gl_carray_waitqueue_t
-static
inline
void
+static void
gl_waitqueue_init (gl_waitqueue_t *wq)
{
wq->array = NULL;
gl_waitqueue_init (gl_waitqueue_t *wq)
{
wq->array = NULL;
@@
-744,7
+743,7
@@
gl_waitqueue_add (gl_waitqueue_t *wq)
}
/* Notifies the first thread from a wait queue and dequeues it. */
}
/* Notifies the first thread from a wait queue and dequeues it. */
-static
inline
void
+static void
gl_waitqueue_notify_first (gl_waitqueue_t *wq)
{
SetEvent (wq->array[wq->offset + 0]);
gl_waitqueue_notify_first (gl_waitqueue_t *wq)
{
SetEvent (wq->array[wq->offset + 0]);
@@
-755,7
+754,7
@@
gl_waitqueue_notify_first (gl_waitqueue_t *wq)
}
/* Notifies all threads from a wait queue and dequeues them all. */
}
/* Notifies all threads from a wait queue and dequeues them all. */
-static
inline
void
+static void
gl_waitqueue_notify_all (gl_waitqueue_t *wq)
{
unsigned int i;
gl_waitqueue_notify_all (gl_waitqueue_t *wq)
{
unsigned int i;