~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/instance/shared.h

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
 
22
 
#ifndef DRIZZLED_TABLE_INSTANCE_SHARED_H
23
 
#define DRIZZLED_TABLE_INSTANCE_SHARED_H
 
22
#pragma once
24
23
 
25
24
#include <drizzled/table/instance/base.h>
26
25
 
27
 
namespace drizzled
28
 
{
29
 
 
30
 
class TableShare;
31
 
class Session;
32
 
 
33
 
namespace identifier { class Table; }
34
 
 
35
 
namespace table
36
 
{
37
 
 
38
 
namespace instance
39
 
{
 
26
namespace drizzled {
 
27
namespace table {
 
28
namespace instance {
40
29
 
41
30
void release(TableShare *share);
42
31
void release(TableShare::shared_ptr &share);
56
45
         const identifier::Table &identifier,
57
46
         char *path_arg= NULL, uint32_t path_length_arg= 0); // Shares for cache
58
47
 
 
48
  Shared(const identifier::Table &identifier, message::schema::shared_ptr schema_message);
 
49
 
59
50
  Shared(const identifier::Table &identifier); // Used by placeholder
60
51
 
61
52
  ~Shared();
87
78
    event_observers= observers;
88
79
  }
89
80
 
 
81
  virtual bool is_replicated() const;
 
82
 
90
83
private:
91
84
  boost::mutex mutex;                /* For locking the share  */
 
85
  drizzled::message::schema::shared_ptr _schema;
92
86
 
93
87
  /* 
94
88
    event_observers is a class containing all the event plugins that have 
102
96
} /* namespace table */
103
97
} /* namespace drizzled */
104
98
 
105
 
#endif /* DRIZZLED_TABLE_INSTANCE_SHARED_H */