1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Portability fixes.

Don't free memory from InnoDB at exit (as this may be done before other threads are finnished)
This commit is contained in:
monty@hundin.mysql.fi
2002-07-01 11:19:17 +03:00
parent daaf9b1a31
commit 6cb77c6b3e
3 changed files with 19 additions and 11 deletions

View File

@ -522,11 +522,13 @@ typedef struct _my_rw_lock_t {
#define rw_unlock(A) my_rw_unlock((A))
#define rwlock_destroy(A) my_rwlock_destroy((A))
extern int my_rwlock_init( my_rw_lock_t *, void * );
extern int my_rwlock_destroy( my_rw_lock_t * );
extern int my_rw_rdlock( my_rw_lock_t * );
extern int my_rw_wrlock( my_rw_lock_t * );
extern int my_rw_unlock( my_rw_lock_t * );
extern int my_rwlock_init(my_rw_lock_t *, void *);
extern int my_rwlock_destroy(my_rw_lock_t *);
extern int my_rw_rdlock(my_rw_lock_t *);
extern int my_rw_wrlock(my_rw_lock_t *);
extern int my_rw_unlock(my_rw_lock_t *);
extern int my_rw_tryrdlock(my_rw_lock_t *);
extern int my_rw_trywrlock(my_rw_lock_t *);
#endif /* USE_MUTEX_INSTEAD_OF_RW_LOCKS */
#define GETHOSTBYADDR_BUFF_SIZE 2048