diff options
author | unknown <monty@hundin.mysql.fi> | 2002-06-20 15:25:02 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-06-20 15:25:02 +0300 |
commit | 950df73713d6eca34de8be1f9771d40a8abeadc4 (patch) | |
tree | 7eee86ca5c680d305ade1203f3945cee038dbd46 /include/my_semaphore.h | |
parent | ccf18acc242f33fffca016c1e28c99e6e4e443b7 (diff) | |
download | mariadb-git-950df73713d6eca34de8be1f9771d40a8abeadc4.tar.gz |
Fixed some bugs after last merge
Added semaphore support to MIT-pthreads.
Docs/manual.texi:
Updated benchmark data
configure.in:
Portability fix for compiling MIT-pthreads with gcc 3.0.x
(Still not perfect)
include/my_semaphore.h:
Cleanup
mit-pthreads/Changes-mysql:
Added semaphore support
mit-pthreads/include/Makefile.inc:
Added semaphore support
mit-pthreads/include/pthread/ac-types.h:
Added semaphore support
mit-pthreads/pthreads/GNUmakefile.inc:
Added semaphore support
mit-pthreads/pthreads/Makefile.inc:
Added semaphore support
mit-pthreads/stdio/xprintf.c:
Added semaphore support
mysql-test/r/rpl_alter.result:
Fixed test results after merge with 3.23
sql/ha_isam.cc:
Fixed core dump after merge
sql/ha_isam.h:
Fixed core dump after merge
sql/mini_client.cc:
P
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_ */ |