summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <Kristofer.Pettersson@naruto.>2007-03-09 08:02:29 +0100
committerunknown <Kristofer.Pettersson@naruto.>2007-03-09 08:02:29 +0100
commited50ca1f3496846bc58a9d4c49320001ec3b45d3 (patch)
treea7d7d0c6ebb90de755d2f7ec1b80c775bcc07d7a /include
parentcf78a908c897d81435f4f97401fef874929fe810 (diff)
parent448f6003f922e0bfc7010bb2733421f76bbd8808 (diff)
downloadmariadb-git-ed50ca1f3496846bc58a9d4c49320001ec3b45d3.tar.gz
Merge naruto.:C:/cpp/bug25042/my50-bug25042
into naruto.:C:/cpp/mysql-5.0-maint include/my_pthread.h: Auto merged
Diffstat (limited to 'include')
-rw-r--r--include/my_pthread.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 30c48b42c7f..d64b5348666 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -80,11 +80,17 @@ typedef struct st_pthread_link {
typedef struct {
uint32 waiting;
-#ifdef OS2
- HEV semaphore;
-#else
- HANDLE semaphore;
-#endif
+ CRITICAL_SECTION lock_waiting;
+
+ enum {
+ SIGNAL= 0,
+ BROADCAST= 1,
+ MAX_EVENTS= 2
+ } EVENTS;
+
+ HANDLE events[MAX_EVENTS];
+ HANDLE broadcast_block_event;
+
} pthread_cond_t;
typedef int pthread_mutexattr_t;