~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2011-02-12 08:10:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212081017-7793i41ybt7gp5ty
More removal of session from includes.

Show diffs side-by-side

added added

removed removed

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