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:
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user