diff options
author | monty@hundin.mysql.fi <> | 2002-06-20 15:25:02 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-06-20 15:25:02 +0300 |
commit | 89f897873110cf4576415e43a759a84fbc41b01b (patch) | |
tree | 7eee86ca5c680d305ade1203f3945cee038dbd46 /include/my_semaphore.h | |
parent | a3538124d76a53c35f016fb82fc1bd471a957527 (diff) | |
download | mariadb-git-89f897873110cf4576415e43a759a84fbc41b01b.tar.gz |
Fixed some bugs after last merge
Added semaphore support to MIT-pthreads.
Diffstat (limited to 'include/my_semaphore.h')
-rw-r--r-- | include/my_semaphore.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/my_semaphore.h b/include/my_semaphore.h index 484423150f7..36c4b1a4740 100644 --- a/include/my_semaphore.h +++ b/include/my_semaphore.h @@ -31,21 +31,22 @@ #ifndef _my_semaphore_h_ #define _my_semaphore_h_ +C_MODE_START + #ifndef __WIN__ #include <semaphore.h> #else -C_MODE_START - typedef HANDLE sem_t; -int sem_init (sem_t * sem, int pshared, unsigned int value); -int sem_destroy (sem_t * sem); -int sem_trywait (sem_t * sem); -int sem_wait (sem_t * sem); -int sem_post (sem_t * sem); -int sem_post_multiple (sem_t * sem,int count); -int sem_getvalue (sem_t * sem, int * sval); +int sem_init(sem_t * sem, int pshared, unsigned int value); +int sem_destroy(sem_t * sem); +int sem_trywait(sem_t * sem); +int sem_wait(sem_t * sem); +int sem_post(sem_t * sem); +int sem_post_multiple(sem_t * sem,int count); +int sem_getvalue(sem_t * sem, int * sval); -C_MODE_END #endif /* __WIN__ */ + +C_MODE_END #endif /* !_my_semaphore_h_ */ |