summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2005-03-08 07:36:56 +0000
committerrpj <rpj>2005-03-08 07:36:56 +0000
commitd5c78e3656cbc7410f333bfa80e2929947e6d0e5 (patch)
tree9d47c7f9dc5022564a7c34ec1db8cca4e4d6d802 /implement.h
parent6df0e45cf47b5eaee00f21a5862e8f0c5107a4e2 (diff)
compiler compatibility and bug fixes
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/implement.h b/implement.h
index b456ebf..5ba9260 100644
--- a/implement.h
+++ b/implement.h
@@ -319,6 +319,12 @@ struct pthread_rwlockattr_t_
};
+typedef struct {
+ pthread_cond_t cond;
+ pthread_mutex_t mtx;
+} ptw32_once_control_t;
+
+
struct ThreadKeyAssoc
{
/*
@@ -472,6 +478,7 @@ extern CRITICAL_SECTION ptw32_cond_list_lock;
extern CRITICAL_SECTION ptw32_cond_test_init_lock;
extern CRITICAL_SECTION ptw32_rwlock_test_init_lock;
extern CRITICAL_SECTION ptw32_spinlock_test_init_lock;
+extern ptw32_once_control_t ptw32_once_control;
#ifdef _UWIN
extern int pthread_count;