~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 10:32:50 UTC
  • Revision ID: brian@tangent.org-20110212103250-q8y7zqan2948uban
Merge in a possible fix for Solaris

Show diffs side-by-side

added added

removed removed

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