1
/* Copyright (C) 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
Implementation for the thread scheduler
20
#include <drizzled/server_includes.h>
21
#include <libdrizzle/libdrizzle.h>
22
#include <drizzled/gettext.h>
23
#include <drizzled/sql_parse.h>
24
#include <drizzled/scheduler.h>
25
/* API for connecting, logging in to a drizzled server */
26
#include <drizzled/connect.h>
31
'Dummy' functions to be used when we don't need any handling for a scheduler
35
static void post_kill_dummy(Session *) {}
36
static bool end_thread_dummy(Session *, bool)
40
Initialize default scheduler with dummy functions so that setup functions
41
only need to declare those that are relvant for their usage
44
scheduler_functions::scheduler_functions()
45
:init_new_connection_thread(init_new_connection_handler_thread),
46
add_connection(0), // Must be defined
47
post_kill_notification(post_kill_dummy),
48
end_thread(end_thread_dummy)