Drizzled Public API Documentation

multi_thread::MultiThreadScheduler Class Reference
Inheritance diagram for multi_thread::MultiThreadScheduler:
drizzled::plugin::Scheduler drizzled::plugin::Plugin

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
 

Static Public Member Functions

static bool addPlugin (plugin::Scheduler *)
 
static void removePlugin (plugin::Scheduler *)
 
static bool setPlugin (const std::string &name)
 
static Scheduler * getScheduler ()
 

Private Member Functions

void setStackSize ()
 

Private Attributes

drizzled::atomic< uint32_t > thread_count
 

Detailed Description

Definition at line 28 of file multi_thread.h.

Member Function Documentation

bool multi_thread::MultiThreadScheduler::addSession ( const drizzled::Session::shared_ptr &  )
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.

void multi_thread::MultiThreadScheduler::killSession ( drizzled::Session )
virtual

Notify the scheduler that it should be killed gracefully.

Reimplemented from drizzled::plugin::Scheduler.

Definition at line 158 of file multi_thread.cc.

void multi_thread::MultiThreadScheduler::killSessionNow ( const drizzled::Session::shared_ptr &  )
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.


The documentation for this class was generated from the following files: