26
26
static int init(drizzled::module::Context &context)
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();
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"));
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);
54
42
DRIZZLE_VERSION_ID,
55
43
"User Level Locking Functions",
58
"User level locking and barrier functions",
46
"User level locking functions",
59
47
PLUGIN_LICENSE_GPL,