~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/module.cc

  • Committer: Brian Aker
  • Date: 2010-11-19 14:41:43 UTC
  • mfrom: (1933.1.12 refactor)
  • mto: This revision was merged to the branch mainline in revision 1940.
  • Revision ID: brian@tangent.org-20101119144143-ktwsjh70b7obxlou
Merge with trunk

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
 
  user_locks::Locks::getInstance(); // We are single threaded at this point, so we can use this to initialize.
 
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
 
29
38
  context.add(new plugin::Create_function<user_locks::GetLock>("get_lock"));
30
39
  context.add(new plugin::Create_function<user_locks::GetLocks>("get_locks"));
31
40
  context.add(new plugin::Create_function<user_locks::ReleaseLock>("release_lock"));
33
42
  context.add(new plugin::Create_function<user_locks::IsFreeLock>("is_free_lock"));
34
43
  context.add(new plugin::Create_function<user_locks::IsUsedLock>("is_used_lock"));
35
44
  context.add(new user_locks::UserLocks);
 
45
  context.add(new user_locks::barriers::UserBarriers);
36
46
 
37
47
  return 0;
38
48
}
41
51
{
42
52
  DRIZZLE_VERSION_ID,
43
53
  "User Level Locking Functions",
44
 
  "1.0",
 
54
  "1.1",
45
55
  "Brian Aker",
46
 
  "User level locking functions",
 
56
  "User level locking and barrier functions",
47
57
  PLUGIN_LICENSE_GPL,
48
58
  init,
49
59
  NULL,