summaryrefslogtreecommitdiff
path: root/sql/events.h
diff options
context:
space:
mode:
authorandrey@lmy004. <>2006-07-04 18:44:35 +0200
committerandrey@lmy004. <>2006-07-04 18:44:35 +0200
commit2bdd872e5f9e2c6777dcaad232b4f0a53cb023eb (patch)
tree4459403077605a188dd88b131d998654761070d2 /sql/events.h
parent6dd9a3bb60f1de2919113f970fecef4e971705eb (diff)
downloadmariadb-git-2bdd872e5f9e2c6777dcaad232b4f0a53cb023eb.tar.gz
WL #3337 (Event scheduler new architecture)
Cut Nr. 8. All tests pass. Separated Event_scheduler into Event_queue and Event_scheduler. Added new Event_scheduler_ng which is the new scheduler and is used system-wide. Will be moved to the event_scheduler.cc in the future. Using Event_timed in Event_queue as well as cloned during execution. Next step is to have Event_worker_data which will be used during execution and will take ::compile()/::execute() out of Event_timed.
Diffstat (limited to 'sql/events.h')
-rw-r--r--sql/events.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/events.h b/sql/events.h
index 1239cf58c7d..357312b44d1 100644
--- a/sql/events.h
+++ b/sql/events.h
@@ -19,6 +19,8 @@
class sp_name;
class Event_parse_data;
class Event_db_repository;
+class Event_queue;
+class Event_scheduler_ng;
/* Return codes */
enum enum_events_error_code
@@ -60,6 +62,15 @@ public:
void
destroy_mutexes();
+ bool
+ start_execution_of_events();
+
+ bool
+ stop_execution_of_events();
+
+ bool
+ is_started();
+
static Events*
get_instance();
@@ -95,6 +106,8 @@ public:
dump_internal_status(THD *thd);
Event_db_repository *db_repository;
+ Event_queue *event_queue;
+ Event_scheduler_ng *scheduler_ng;
private:
/* Singleton DP is used */