~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.h

Encapsulate the mutex in Archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  std::string table_name;
34
34
  char data_file_name[FN_REFLEN];
35
35
  uint32_t use_count;
36
 
  pthread_mutex_t mutex;
 
36
  pthread_mutex_t _mutex;
37
37
  drizzled::THR_LOCK _lock;
38
38
  azio_stream archive_write;     /* Archive file we are working with */
39
39
  bool archive_write_open;
44
44
  uint64_t  version;
45
45
  drizzled::ha_rows rows_recorded;    /* Number of rows in tables */
46
46
  drizzled::ha_rows version_rows;
 
47
 
 
48
  pthread_mutex_t &mutex()
 
49
  {
 
50
    return _mutex;
 
51
  }
47
52
};
48
53
 
49
54
/*