~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.h

Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define DRIZZLED_TABLE_CACHE_H
24
24
 
25
25
#include <boost/unordered_map.hpp>
 
26
#include <drizzled/identifier.h>
26
27
 
27
28
namespace drizzled {
 
29
 
 
30
class Session;
 
31
 
28
32
namespace table {
29
33
 
 
34
namespace instance {
 
35
class Shared;
 
36
 
37
 
30
38
class Concurrent;
31
39
 
32
 
typedef boost::unordered_multimap< TableIdentifier::Key, Concurrent *> CacheMap;
 
40
typedef boost::unordered_multimap< identifier::Table::Key, Concurrent *> CacheMap;
33
41
typedef std::pair< CacheMap::const_iterator, CacheMap::const_iterator > CacheRange;
34
42
 
35
43
class Cache 
55
63
  }
56
64
 
57
65
  bool areTablesUsed(Table *table, bool wait_for_name_lock);
58
 
  void removeSchema(const SchemaIdentifier &schema_identifier);
59
 
  bool removeTable(Session *session, TableIdentifier &identifier, uint32_t flags);
60
 
  void release(TableShare *share);
 
66
  void removeSchema(const identifier::Schema &schema_identifier);
 
67
  bool removeTable(Session *session, identifier::Table &identifier, uint32_t flags);
 
68
  void release(table::instance::Shared *share);
61
69
  bool insert(table::Concurrent *arg);
62
70
 
63
71
  boost::mutex &mutex()