~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/thr_lock.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-07 22:41:28 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110807224128-1061pu4ru7ij043i
cppcheck

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/visibility.h>
25
25
 
26
 
namespace drizzled
27
 
{
 
26
namespace drizzled {
28
27
 
29
28
extern uint64_t max_write_lock_count;
30
29
extern uint64_t table_lock_wait_timeout;
153
152
    read_no_write_count(0)
154
153
  { }
155
154
 
156
 
  ~THR_LOCK()
157
 
  { }
158
 
 
159
155
  void abort_locks();
160
156
  bool abort_locks_for_thread(uint64_t thread);
161
157
 
169
165
    mutex.unlock();
170
166
  }
171
167
 
172
 
  void init()
173
 
  {
174
 
  }
175
 
 
176
 
  void deinit()
177
 
  {
178
 
  }
179
 
 
180
168
  boost::mutex *native_handle()
181
169
  {
182
170
    return &mutex;