mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Polishing:
1) add support for joinable threads to Thread class; 2) move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. server-tools/instance-manager/instance.cc: Use Manager::is_linux_threads() instead of global variable. server-tools/instance-manager/listener.cc: Use Thread::start(DETACHED) instead of Thread::start_detached(). server-tools/instance-manager/manager.cc: 1. Use Thread::start(DETACHED) instead of Thread::start_detached(); 2. Move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. server-tools/instance-manager/manager.h: Move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. server-tools/instance-manager/mysqlmanager.cc: Move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. server-tools/instance-manager/priv.cc: Move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. server-tools/instance-manager/priv.h: Move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. server-tools/instance-manager/thread_registry.cc: Add support of joinable threads to Thread class. server-tools/instance-manager/thread_registry.h: Add support of joinable threads to Thread class.
This commit is contained in:
@ -39,6 +39,10 @@ public:
|
||||
static Thread_registry *get_thread_registry() { return p_thread_registry; }
|
||||
static User_map *get_user_map() { return p_user_map; }
|
||||
|
||||
#ifndef __WIN__
|
||||
static bool is_linux_threads() { return linux_threads; }
|
||||
#endif // __WIN__
|
||||
|
||||
private:
|
||||
static void stop_all_threads();
|
||||
|
||||
@ -47,6 +51,14 @@ private:
|
||||
static Instance_map *p_instance_map;
|
||||
static Thread_registry *p_thread_registry;
|
||||
static User_map *p_user_map;
|
||||
|
||||
#ifndef __WIN__
|
||||
/*
|
||||
This flag is set if Instance Manager is running on the system using
|
||||
LinuxThreads.
|
||||
*/
|
||||
static bool linux_threads;
|
||||
#endif // __WIN__
|
||||
};
|
||||
|
||||
#endif // INCLUDES_MYSQL_INSTANCE_MANAGER_MANAGER_H
|
||||
|
Reference in New Issue
Block a user