1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Changed pthread_mutex_init() to use new MY_MUTEX_INIT.. macro

(For glibc 2.2)
This commit is contained in:
monty@donna.mysql.fi
2001-03-26 01:05:04 +03:00
parent 76e59081a0
commit add70fc1ba
20 changed files with 44 additions and 44 deletions

View File

@ -45,7 +45,7 @@ typedef struct st_log_info
my_off_t pos;
bool fatal; // if the purge happens to give us a negative offset
pthread_mutex_t lock;
st_log_info():fatal(0) { pthread_mutex_init(&lock, NULL);}
st_log_info():fatal(0) { pthread_mutex_init(&lock, MY_MUTEX_INIT_FAST);}
~st_log_info() { pthread_mutex_destroy(&lock);}
} LOG_INFO;