~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/thr_lock.h

  • Committer: Brian Aker
  • Date: 2010-08-07 23:43:23 UTC
  • mto: (1698.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1696.
  • Revision ID: brian@gaz-20100807234323-c6pw0zxteodoa5o5
Encapsulate more of the thr lock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
};
132
132
 
133
133
struct THR_LOCK {
 
134
private:
134
135
  pthread_mutex_t mutex;
 
136
public:
135
137
  struct st_lock_list read_wait;
136
138
  struct st_lock_list read;
137
139
  struct st_lock_list write_wait;
181
183
#define thr_lock_owner_init(owner, info_arg) (owner)->info= (info_arg)
182
184
void thr_lock_info_init(THR_LOCK_INFO *info);
183
185
void thr_lock_init(THR_LOCK *lock);
184
 
void thr_lock_delete(THR_LOCK *lock);
185
186
void thr_lock_data_init(THR_LOCK *lock,THR_LOCK_DATA *data,
186
187
                        void *status_param= NULL);
187
188
enum enum_thr_lock_result thr_multi_lock(THR_LOCK_DATA **data,