summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-07-01 11:19:17 +0300
committerunknown <monty@hundin.mysql.fi>2002-07-01 11:19:17 +0300
commit61ee4a80878b10d66dde5186b2a87d6eb3eef415 (patch)
tree66404d97e9968903635aeaf96095c74808573c78 /include
parentf26ae21229b11bae1b031b6ab68e9f43c9716f9e (diff)
downloadmariadb-git-61ee4a80878b10d66dde5186b2a87d6eb3eef415.tar.gz
Portability fixes.
Don't free memory from InnoDB at exit (as this may be done before other threads are finnished) include/my_pthread.h: Added missing prototypes innobase/srv/srv0start.c: Don't free memory at exit (as this may be done before other threads are finnished) mysys/mf_iocache.c: Cleanup (Don't rely on return value from mutex_unlock())
Diffstat (limited to 'include')
-rw-r--r--include/my_pthread.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 038030540e8..a822d2db484 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -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