~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/cache.h

  • Committer: Mark Atwood
  • Date: 2011-06-24 02:13:02 UTC
  • mfrom: (2318.6.56 rf)
  • Revision ID: me@mark.atwood.name-20110624021302-y9oiksid220xan9s
mergeĀ lp:~olafvdspek/drizzle/refactor14

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;