~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-04 10:18:35 UTC
  • mfrom: (2143.1.4 drizzle-build)
  • Revision ID: brian@tangent.org-20110204101835-j23pv0febg9p0a2p
Merge of all local trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  friend void release(TableShare *share);
49
49
  friend void release(TableShare::shared_ptr &share);
50
50
 
51
 
private:
52
 
  boost::mutex mutex;                /* For locking the share  */
53
 
 
54
51
public:
55
52
  typedef boost::shared_ptr<Shared> shared_ptr;
56
53
  typedef std::vector <shared_ptr> vector;
79
76
                                int &in_error);
80
77
 
81
78
  static shared_ptr foundTableShare(shared_ptr share);
 
79
 
 
80
  plugin::EventObserverList *getTableObservers() 
 
81
  { 
 
82
    return event_observers;
 
83
  }
 
84
 
 
85
  void setTableObservers(plugin::EventObserverList *observers) 
 
86
  { 
 
87
    event_observers= observers;
 
88
  }
 
89
 
 
90
private:
 
91
  boost::mutex mutex;                /* For locking the share  */
 
92
 
 
93
  /* 
 
94
    event_observers is a class containing all the event plugins that have 
 
95
    registered an interest in this table.
 
96
  */
 
97
  plugin::EventObserverList *event_observers;
 
98
 
82
99
};
83
100
 
84
101
} /* namespace instance */