summaryrefslogtreecommitdiff
path: root/lib/glthread/thread.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:08 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:54 -0800
commit30d594eb300acfbf6a829bb299bface0d7ea8d8c (patch)
treeacc538a1c333009b7199d66802b17ae9a67e709e /lib/glthread/thread.c
parente4b23b86811ef9aa8775c7e86d3abfaaebde488f (diff)
downloadgnulib-30d594eb300acfbf6a829bb299bface0d7ea8d8c.tar.gz
cond, lock, thread: better 'inline'
* lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE): * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE): New macros. Use them instead of static inline, for header functions. * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove) (gl_waitqueue_notify_first, gl_waitqueue_notify_all): * lib/glthread/lock.c (gl_waitqueue_init) (gl_waitqueue_notify_first, gl_waitqueue_notify_all): * lib/glthread/thread.c (get_current_thread_handle): Change 'static inline' to 'inline'. * lib/glthread/cond.h, lib/glthread/thread.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/cond.m4 (gl_COND): * m4/lock.m4 (gl_PREREQ_LOCK): * m4/thread.m4 (gl_THREAD): Do not require AC_C_INLINE. * modules/cond, modules/thread (Depends-on): Add extern-inline.
Diffstat (limited to 'lib/glthread/thread.c')
-rw-r--r--lib/glthread/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/glthread/thread.c b/lib/glthread/thread.c
index 76e37646e7..25b758a86a 100644
--- a/lib/glthread/thread.c
+++ b/lib/glthread/thread.c
@@ -21,6 +21,7 @@
#include <config.h>
/* Specification. */
+# define _GLTHREAD_THREAD_INLINE _GL_EXTERN_INLINE
#include "glthread/thread.h"
#include <stdlib.h>
@@ -85,7 +86,7 @@ struct gl_thread_struct
};
/* Return a real HANDLE object for the current thread. */
-static inline HANDLE
+static HANDLE
get_current_thread_handle (void)
{
HANDLE this_handle;