~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.h

  • Committer: Brian Aker
  • Date: 2010-04-05 23:46:43 UTC
  • Revision ID: brian@gaz-20100405234643-0he3xnj902rc70r8
Fixing tests to work with PBXT.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_LOCK_H
21
21
#define DRIZZLED_LOCK_H
22
22
 
23
 
#include <mysys/definitions.h>
 
23
#include "drizzled/thr_lock.h"
 
24
 
 
25
namespace drizzled
 
26
{
24
27
 
25
28
class Session;
26
29
class Table;
41
44
void mysql_lock_remove(Session *session, Table *table);
42
45
void mysql_lock_abort(Session *session, Table *table);
43
46
bool mysql_lock_abort_for_thread(Session *session, Table *table);
44
 
TableList *mysql_lock_have_duplicate(Session *session, TableList *needle,
45
 
                                      TableList *haystack);
46
47
bool lock_global_read_lock(Session *session);
47
48
void unlock_global_read_lock(Session *session);
48
49
bool wait_if_global_read_lock(Session *session, bool abort_on_refresh,
61
62
void unlock_table_names(TableList *table_list, TableList *last_table);
62
63
bool lock_table_names_exclusively(Session *session, TableList *table_list);
63
64
 
 
65
} /* namespace drizzled */
 
66
 
64
67
#endif /* DRIZZLED_LOCK_H */