~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: patrick crews
  • Date: 2011-01-30 23:02:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2131.
  • Revision ID: gleebix@gmail.com-20110130230212-nnts892jsc0oiurv
Added initial docs for dbqp.py

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
 
51
54
public:
52
55
  typedef boost::shared_ptr<Shared> shared_ptr;
53
56
  typedef std::vector <shared_ptr> vector;
71
74
    mutex.unlock();
72
75
  }
73
76
 
 
77
 
74
78
  static shared_ptr make_shared(Session *session, 
75
79
                                const identifier::Table &identifier,
76
80
                                int &in_error);
77
81
 
78
82
  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
 
  virtual bool replicate() const
91
 
  {
92
 
    if (getTableMessage()->options().has_dont_replicate() and getTableMessage()->options().dont_replicate())
93
 
      return false;
94
 
 
95
 
    return true;
96
 
  }
97
 
 
98
 
private:
99
 
  boost::mutex mutex;                /* For locking the share  */
100
 
 
101
 
  /* 
102
 
    event_observers is a class containing all the event plugins that have 
103
 
    registered an interest in this table.
104
 
  */
105
 
  plugin::EventObserverList *event_observers;
106
 
 
107
83
};
108
84
 
109
85
} /* namespace instance */