~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/cache.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 16:36:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622163640-pwub8fpyqfdvqek4
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class DRIZZLED_API Cache 
31
31
{
32
 
  typedef boost::shared_ptr<drizzled::Session> session_shared_ptr;
 
32
  typedef boost::shared_ptr<drizzled::Session> session_ptr;
33
33
public:
34
 
  typedef std::list<session_shared_ptr> list;
 
34
  typedef std::list<session_ptr> list;
35
35
 
36
36
  static list &getCache()
37
37
  {
51
51
  static void shutdownFirst();
52
52
  static void shutdownSecond();
53
53
 
54
 
  static void erase(session_shared_ptr&);
 
54
  static void erase(const session_ptr&);
55
55
  static size_t count();
56
 
  static void insert(session_shared_ptr &arg);
 
56
  static void insert(const session_ptr&);
57
57
 
58
 
  static session_shared_ptr find(const session_id_t &id);
 
58
  static session_ptr find(const session_id_t&);
59
59
 
60
60
private:
61
61
  static bool volatile _ready_to_exit;