1 /* Copyright (c) 2003-2007 MySQL AB
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 #ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_MANAGER_H
17 #define INCLUDES_MYSQL_INSTANCE_MANAGER_MANAGER_H
19 #if defined(__GNUC__) && defined(USE_PRAGMA_INTERFACE)
23 #include <my_global.h>
27 class Thread_registry
;
35 static int flush_instances();
39 These methods return a non-NULL value only for the duration
42 static Instance_map
*get_instance_map() { return p_instance_map
; }
43 static Guardian
*get_guardian() { return p_guardian
; }
44 static Thread_registry
*get_thread_registry() { return p_thread_registry
; }
45 static User_map
*get_user_map() { return p_user_map
; }
49 static bool is_linux_threads() { return linux_threads
; }
53 static void stop_all_threads();
54 static bool init_user_map(User_map
*user_map
);
57 static Guardian
*p_guardian
;
58 static Instance_map
*p_instance_map
;
59 static Thread_registry
*p_thread_registry
;
60 static User_map
*p_user_map
;
64 This flag is set if Instance Manager is running on the system using
67 static bool linux_threads
;
71 #endif // INCLUDES_MYSQL_INSTANCE_MANAGER_MANAGER_H