summaryrefslogtreecommitdiff
path: root/lib/glthread/cond.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-10-01 03:11:20 +0200
committerBruno Haible <bruno@clisp.org>2008-10-01 03:11:20 +0200
commitd4300b64e12f5ed6eb0634a7de21e9479b18bfbe (patch)
tree45f1aa8158f501389f0983dd6a2d5c645702f4d4 /lib/glthread/cond.h
parent0cf4e4899f207cc22006a4cd5abb4f548db35282 (diff)
downloadgnulib-d4300b64e12f5ed6eb0634a7de21e9479b18bfbe.tar.gz
Needs to depend on modules 'errno' and 'time'.
Diffstat (limited to 'lib/glthread/cond.h')
-rw-r--r--lib/glthread/cond.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/glthread/cond.h b/lib/glthread/cond.h
index 5939004cc4..e6707b85ea 100644
--- a/lib/glthread/cond.h
+++ b/lib/glthread/cond.h
@@ -52,6 +52,7 @@
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
+#include <time.h>
#include "glthread/lock.h"
@@ -122,9 +123,9 @@ extern int glthread_in_use (void);
typedef pthread_cond_t gl_cond_t;
# define gl_cond_define(STORAGECLASS, NAME) \
- STORAGECLASS pthread_cond_t NAME;
+ STORAGECLASS gl_cond_t NAME;
# define gl_cond_define_initialized(STORAGECLASS, NAME) \
- STORAGECLASS pthread_cond_t NAME = gl_cond_initializer;
+ STORAGECLASS gl_cond_t NAME = gl_cond_initializer;
# define gl_cond_initializer \
PTHREAD_COND_INITIALIZER
# define glthread_cond_init(COND) \
@@ -181,9 +182,9 @@ extern "C" {
typedef pth_cond_t gl_cond_t;
# define gl_cond_define(STORAGECLASS, NAME) \
- STORAGECLASS pth_cond_t NAME;
+ STORAGECLASS gl_cond_t NAME;
# define gl_cond_define_initialized(STORAGECLASS, NAME) \
- STORAGECLASS pth_cond_t NAME = gl_cond_initializer;
+ STORAGECLASS gl_cond_t NAME = gl_cond_initializer;
# define gl_cond_initializer \
PTH_COND_INIT
# define glthread_cond_init(COND) \
@@ -239,11 +240,11 @@ extern "C" {
/* -------------------------- gl_cond_t datatype -------------------------- */
-typedef pthread_cond_t gl_cond_t;
+typedef cond_t gl_cond_t;
# define gl_cond_define(STORAGECLASS, NAME) \
- STORAGECLASS cond_t NAME;
+ STORAGECLASS gl_cond_t NAME;
# define gl_cond_define_initialized(STORAGECLASS, NAME) \
- STORAGECLASS cond_t NAME = gl_cond_initializer;
+ STORAGECLASS gl_cond_t NAME = gl_cond_initializer;
# define gl_cond_initializer \
DEFAULTCV
# define glthread_cond_init(COND) \