~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.h

  • Committer: kalebral at gmail
  • Date: 2010-12-04 02:13:38 UTC
  • mto: (1971.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1972.
  • Revision ID: kalebral@gmail.com-20101204021338-yek2zoraob5w7i5n
update files that did not have license or had incorrect license structure

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, Inc.
 
5
 *  Copyright (C) 2010 Sun Microsystems
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>
27
 
#include <drizzled/table/instance.h>
28
26
 
29
27
namespace drizzled {
30
 
 
31
 
class Session;
32
 
 
33
28
namespace table {
34
29
 
35
 
namespace instance {
36
 
class Shared;
37
 
38
 
 
39
30
class Concurrent;
40
31
 
41
 
typedef boost::unordered_multimap< identifier::Table::Key, Concurrent *> CacheMap;
 
32
typedef boost::unordered_multimap< TableIdentifier::Key, Concurrent *> CacheMap;
42
33
typedef std::pair< CacheMap::const_iterator, CacheMap::const_iterator > CacheRange;
43
34
 
44
35
class Cache 
64
55
  }
65
56
 
66
57
  bool areTablesUsed(Table *table, bool wait_for_name_lock);
67
 
  void removeSchema(const identifier::Schema &schema_identifier);
68
 
  bool removeTable(Session *session, identifier::Table &identifier, uint32_t flags);
69
 
  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);
70
61
  bool insert(table::Concurrent *arg);
71
62
 
72
63
  boost::mutex &mutex()