mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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
This commit is contained in:
@ -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);
|
||||
|
||||
#endif /* __WIN__ */
|
||||
|
||||
C_MODE_END
|
||||
#endif /* __WIN__ */
|
||||
#endif /* !_my_semaphore_h_ */
|
||||
|
Reference in New Issue
Block a user