~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2009 Sun Microsystems
 
1
/* Copyright (C) 2009 Sun Microsystems, Inc.
2
2
 
3
3
  This program is free software; you can redistribute it and/or modify
4
4
  it under the terms of the GNU General Public License as published by
20
20
#include <drizzled/gettext.h>
21
21
#include <drizzled/error.h>
22
22
#include <drizzled/plugin/scheduler.h>
23
 
#include "drizzled/internal/my_sys.h"
 
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
 
 
31
namespace multi_thread {
 
32
 
28
33
class MultiThreadScheduler: public drizzled::plugin::Scheduler
29
34
{
30
35
private:
39
44
  }
40
45
 
41
46
  ~MultiThreadScheduler();
42
 
  bool addSession(drizzled::Session *session);
43
 
  void killSessionNow(drizzled::Session *session);
 
47
  bool addSession(drizzled::Session::shared_ptr &session);
 
48
  void killSessionNow(drizzled::Session::shared_ptr &session);
 
49
  void killSession(drizzled::Session*);
44
50
  
45
 
  void runSession(drizzled::Session *session);
 
51
  void runSession(drizzled::session_id_t);
46
52
private:
47
53
  void setStackSize();
48
54
};
49
55
 
 
56
} // namespace multi_thread
 
57
 
50
58
#endif /* PLUGIN_MULTI_THREAD_MULTI_THREAD_H */