~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.h

  • Committer: Lee Bieber
  • Date: 2010-11-18 15:33:33 UTC
  • mfrom: (1932.3.14 trunk)
  • Revision ID: kalebral@gmail.com-20101118153333-1onwy3lvwmxltqdn
Merge Brian - more session work and clean up

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/plugin/scheduler.h>
23
23
#include "drizzled/internal/my_sys.h"
24
24
#include <drizzled/sql_parse.h>
25
 
#include <drizzled/session.h>
26
25
#include <string>
27
26
 
 
27
namespace drizzled {
 
28
class Session;
 
29
}
 
30
 
28
31
class MultiThreadScheduler: public drizzled::plugin::Scheduler
29
32
{
30
33
private:
39
42
  }
40
43
 
41
44
  ~MultiThreadScheduler();
42
 
  bool addSession(drizzled::Session *session);
43
 
  void killSessionNow(drizzled::Session *session);
 
45
  bool addSession(drizzled::Session::shared_ptr &session);
 
46
  void killSessionNow(drizzled::Session::shared_ptr &session);
44
47
  
45
 
  void runSession(drizzled::Session *session);
 
48
  void runSession(drizzled::session_id_t);
46
49
private:
47
50
  void setStackSize();
48
51
};