22 #include <plugin/user_locks/module.h>
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"));
38 context.add(
new plugin::Create_function<user_locks::GetLock>(
"get_lock"));
39 context.add(
new plugin::Create_function<user_locks::GetLocks>(
"get_locks"));
40 context.add(
new plugin::Create_function<user_locks::ReleaseLock>(
"release_lock"));
41 context.add(
new plugin::Create_function<user_locks::ReleaseLocks>(
"release_locks"));
42 context.add(
new plugin::Create_function<user_locks::IsFreeLock>(
"is_free_lock"));
43 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"));
52 DRIZZLE_DECLARE_PLUGIN
58 N_(
"User-level locking and barrier functions"),
64 DRIZZLE_DECLARE_PLUGIN_END;
TODO: Rename this file - func.h is stupid.