~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/cache.h

  • Committer: Brian Aker
  • Date: 2011-02-12 06:13:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212061332-a5dtetim82r6vvls
Merge in session up and out of sql_select.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace drizzled
28
28
{
29
29
 
30
 
class Session;
31
 
 
32
30
namespace session
33
31
{
34
32
 
35
33
class DRIZZLED_API Cache 
36
34
{
37
 
  typedef boost::shared_ptr<drizzled::Session> session_shared_ptr;
38
35
public:
39
 
  typedef std::list<session_shared_ptr> list;
 
36
  typedef std::list<Session::shared_ptr> list;
40
37
 
41
38
  Cache() :
42
39
    _ready_to_exit(false)
68
65
  void shutdownFirst();
69
66
  void shutdownSecond();
70
67
 
71
 
  void erase(session_shared_ptr&);
 
68
  void erase(Session::shared_ptr&);
72
69
  size_t count();
73
 
  void insert(session_shared_ptr &arg);
 
70
  void insert(Session::shared_ptr &arg);
74
71
 
75
 
  session_shared_ptr find(const session_id_t &id);
 
72
  Session::shared_ptr find(const session_id_t &id);
76
73
 
77
74
private:
78
75
  bool volatile _ready_to_exit;