~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
4
 *  Copyright (C) 2010 Brian Aker
5
 
 *  Copyright (C) 2010 Sun Microsystems
 
5
 *  Copyright (C) 2010 Sun Microsystems, Inc.
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License as published by
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()