~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.h

  • Committer: Brian Aker
  • Date: 2010-12-19 06:20:54 UTC
  • mfrom: (2005.1.1 bug673105)
  • Revision ID: brian@tangent.org-20101219062054-1kt0l3dxs4z2z8md
Merge Dave.

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>
27
26
 
28
27
namespace drizzled {
29
 
 
30
 
class Session;
31
 
 
32
28
namespace table {
33
29
 
34
 
namespace instance {
35
 
class Shared;
36
 
37
 
 
38
30
class Concurrent;
39
31
 
40
 
typedef boost::unordered_multimap< identifier::Table::Key, Concurrent *> CacheMap;
 
32
typedef boost::unordered_multimap< TableIdentifier::Key, Concurrent *> CacheMap;
41
33
typedef std::pair< CacheMap::const_iterator, CacheMap::const_iterator > CacheRange;
42
34
 
43
35
class Cache 
63
55
  }
64
56
 
65
57
  bool areTablesUsed(Table *table, bool wait_for_name_lock);
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);
 
58
  void removeSchema(const SchemaIdentifier &schema_identifier);
 
59
  bool removeTable(Session *session, TableIdentifier &identifier, uint32_t flags);
 
60
  void release(TableShare *share);
69
61
  bool insert(table::Concurrent *arg);
70
62
 
71
63
  boost::mutex &mutex()