~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lock.h

  • Committer: Brian Aker
  • Date: 2010-08-17 01:34:55 UTC
  • mto: (1711.1.23 build)
  • mto: This revision was merged to the branch mainline in revision 1714.
  • Revision ID: brian@tangent.org-20100817013455-zx3nm7qilxvpwrgb
Style on structure cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
class Session;
29
29
class Table;
30
30
class TableList;
31
 
typedef struct drizzled_lock_st DRIZZLE_LOCK;
 
31
class DrizzleLock;
32
32
 
33
 
DRIZZLE_LOCK *mysql_lock_tables(Session *session, Table **table, uint32_t count,
34
 
                                uint32_t flags, bool *need_reopen);
 
33
DrizzleLock *mysql_lock_tables(Session *session, Table **table, uint32_t count,
 
34
                               uint32_t flags, bool *need_reopen);
35
35
/* mysql_lock_tables() and open_table() flags bits */
36
36
#define DRIZZLE_LOCK_IGNORE_GLOBAL_READ_LOCK      0x0001
37
37
#define DRIZZLE_LOCK_IGNORE_FLUSH                 0x0002
38
38
#define DRIZZLE_LOCK_NOTIFY_IF_NEED_REOPEN        0x0004
39
39
#define DRIZZLE_OPEN_TEMPORARY_ONLY               0x0008
40
40
 
41
 
void mysql_unlock_tables(Session *session, DRIZZLE_LOCK *sql_lock);
42
 
void mysql_unlock_read_tables(Session *session, DRIZZLE_LOCK *sql_lock);
 
41
void mysql_unlock_tables(Session *session, DrizzleLock *sql_lock);
 
42
void mysql_unlock_read_tables(Session *session, DrizzleLock *sql_lock);
43
43
void mysql_unlock_some_tables(Session *session, Table **table, uint32_t count);
44
44
void mysql_lock_remove(Session *session, Table *table);
45
45
void mysql_lock_abort(Session *session, Table *table);