~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/module.cc

  • Committer: David Shrewsbury
  • Date: 2010-11-15 15:29:16 UTC
  • mto: (1932.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1933.
  • Revision ID: shrewsbury.dave@gmail.com-20101115152916-cowsgsfm3sibys30
Move transaction_reader from drizzled/message to transaction_log plugin; also pulled transaction_reader file operations out into separate class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
static int init(drizzled::module::Context &context)
27
27
{
28
 
  // We are single threaded at this point, so we can use this to initialize.
29
 
  user_locks::Locks::getInstance();
30
 
  user_locks::barriers::Barriers::getInstance();
31
 
 
32
 
  context.add(new plugin::Create_function<user_locks::barriers::CreateBarrier>("create_barrier"));
33
 
  context.add(new plugin::Create_function<user_locks::barriers::Release>("release_barrier"));
34
 
  context.add(new plugin::Create_function<user_locks::barriers::Wait>("wait"));
35
 
  context.add(new plugin::Create_function<user_locks::barriers::WaitUntil>("wait_until"));
36
 
  context.add(new plugin::Create_function<user_locks::barriers::Signal>("signal"));
37
 
 
 
28
  user_locks::Locks::getInstance(); // We are single threaded at this point, so we can use this to initialize.
38
29
  context.add(new plugin::Create_function<user_locks::GetLock>("get_lock"));
39
30
  context.add(new plugin::Create_function<user_locks::GetLocks>("get_locks"));
40
31
  context.add(new plugin::Create_function<user_locks::ReleaseLock>("release_lock"));
41
32
  context.add(new plugin::Create_function<user_locks::ReleaseLocks>("release_locks"));
42
33
  context.add(new plugin::Create_function<user_locks::IsFreeLock>("is_free_lock"));
43
34
  context.add(new plugin::Create_function<user_locks::IsUsedLock>("is_used_lock"));
44
 
  context.add(new plugin::Create_function<user_locks::locks::WaitFor>("wait_for_lock"));
45
 
  context.add(new plugin::Create_function<user_locks::locks::ReleaseAndWait>("release_lock_and_wait"));
46
35
  context.add(new user_locks::UserLocks);
47
 
  context.add(new user_locks::barriers::UserBarriers);
48
36
 
49
37
  return 0;
50
38
}
53
41
{
54
42
  DRIZZLE_VERSION_ID,
55
43
  "User Level Locking Functions",
56
 
  "1.1",
 
44
  "1.0",
57
45
  "Brian Aker",
58
 
  "User level locking and barrier functions",
 
46
  "User level locking functions",
59
47
  PLUGIN_LICENSE_GPL,
60
48
  init,
61
49
  NULL,