Public Types | |
typedef std::pair< const std::string, const std::string > | map_key |
typedef std::map< const map_key, plugin::Plugin * > | map |
typedef std::vector< Plugin * > | vector |
Public Member Functions | |
MultiThreadScheduler (const char *name_arg) | |
bool | addSession (const drizzled::Session::shared_ptr &) |
void | killSessionNow (const drizzled::Session::shared_ptr &) |
void | killSession (drizzled::Session *) |
void | runSession (drizzled::session_id_t) |
virtual void | shutdownPlugin () |
virtual void | prime () |
virtual void | startup (drizzled::Session &) |
void | activate () |
void | deactivate () |
bool | isActive () const |
const std::string & | getName () const |
void | setModule (module::Module *module) |
const std::string & | getTypeName () const |
virtual bool | removeLast () const |
const std::string & | getModuleName () const |
Private Member Functions | |
void | setStackSize () |
Private Attributes | |
drizzled::atomic< uint32_t > | thread_count |
Definition at line 28 of file multi_thread.h.
|
virtual |
Add a session to the scheduler. When the scheduler is ready to run the session, it should call session->run().
Implements drizzled::plugin::Scheduler.
Definition at line 126 of file multi_thread.cc.
|
virtual |
Notify the scheduler that it should be killed gracefully.
Reimplemented from drizzled::plugin::Scheduler.
Definition at line 158 of file multi_thread.cc.
|
virtual |
This is called when a scheduler should kill the session immedaitely.
Reimplemented from drizzled::plugin::Scheduler.
Definition at line 168 of file multi_thread.cc.