~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definition/cache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-13 13:04:50 UTC
  • mto: (2277.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2278.
  • Revision ID: olafvdspek@gmail.com-20110413130450-885d8yto7qrtl3m4
Definition Cache

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <drizzled/util/find_ptr.h>
32
32
 
33
33
namespace drizzled {
34
 
 
35
34
namespace definition {
36
35
 
 
36
Cache::Map Cache::cache;
 
37
boost::mutex Cache::_mutex;
 
38
 
37
39
table::instance::Shared::shared_ptr Cache::find(const identifier::Table::Key &key)
38
40
{
39
41
  boost::mutex::scoped_lock scopedLock(_mutex);
62
64
{
63
65
  boost::mutex::scoped_lock scopedLock(_mutex);
64
66
 
65
 
  vector.reserve(definition::Cache::singleton().size());
 
67
  vector.reserve(definition::Cache::size());
66
68
 
67
69
  std::transform(cache.begin(),
68
70
                 cache.end(),