diff options
author | unknown <Kristofer.Pettersson@naruto.> | 2007-03-09 08:02:29 +0100 |
---|---|---|
committer | unknown <Kristofer.Pettersson@naruto.> | 2007-03-09 08:02:29 +0100 |
commit | ed50ca1f3496846bc58a9d4c49320001ec3b45d3 (patch) | |
tree | a7d7d0c6ebb90de755d2f7ec1b80c775bcc07d7a /include | |
parent | cf78a908c897d81435f4f97401fef874929fe810 (diff) | |
parent | 448f6003f922e0bfc7010bb2733421f76bbd8808 (diff) | |
download | mariadb-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.h | 16 |
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; |