~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/cache.h

  • Committer: Lee Bieber
  • Date: 2011-04-14 16:20:43 UTC
  • mfrom: (2277.1.3 build)
  • Revision ID: kalebral@gmail.com-20110414162043-2khq8mql7gvodnzn
Merge Olaf - Refactor Session Cache and Remove table::Cache::singleton()
Merge Olaf - Refactor Thread
Merge Olaf - remove unused functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#pragma once
21
21
 
 
22
#include <boost/thread/condition_variable.hpp>
 
23
#include <boost/thread/mutex.hpp>
 
24
#include <drizzled/visibility.h>
22
25
#include <list>
23
26
 
24
 
#include <drizzled/visibility.h>
25
 
 
26
27
namespace drizzled {
27
28
namespace session {
28
29
 
49
50
    return cache;
50
51
  }
51
52
 
52
 
  boost::mutex &mutex()
 
53
  static boost::mutex &mutex()
53
54
  {
54
55
    return _mutex;
55
56
  }
71
72
private:
72
73
  bool volatile _ready_to_exit;
73
74
  list cache;
74
 
  boost::mutex _mutex;
 
75
  static boost::mutex _mutex;
75
76
  boost::condition_variable _end;
76
77
};
77
78