1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

IM port fixes: fix crash on startup, add more error checking, get rid of unnecessary code.

This commit is contained in:
petr@mysql.com
2005-08-05 14:35:30 +04:00
parent 1894cff045
commit a64f264e4b
8 changed files with 39 additions and 46 deletions

View File

@ -137,25 +137,15 @@ Instance_map::~Instance_map()
}
int Instance_map::lock()
void Instance_map::lock()
{
#ifdef __WIN__
pthread_mutex_lock(&LOCK_instance_map);
return 0;
#else
return pthread_mutex_lock(&LOCK_instance_map);
#endif
}
int Instance_map::unlock()
void Instance_map::unlock()
{
#ifdef __WIN__
pthread_mutex_unlock(&LOCK_instance_map);
return 0;
#else
return pthread_mutex_unlock(&LOCK_instance_map);
#endif
}