Commit 3804557b authored by Dominik Charousset's avatar Dominik Charousset

added get_command_dispatcher convenience function

parent 07c1a086
...@@ -187,10 +187,11 @@ class command_dispatcher { ...@@ -187,10 +187,11 @@ class command_dispatcher {
}; };
#else // CPPA_OPENCL #else // CPPA_OPENCL
class command_dispatcher : public detail::singleton_mixin<command_dispatcher> { class command_dispatcher : public detail::singleton_mixin<command_dispatcher> { };
};
#endif // CPPA_OPENCL #endif // CPPA_OPENCL
command_dispatcher* get_command_dispatcher();
} } // namespace cppa::opencl } } // namespace cppa::opencl
#endif // CPPA_OPENCL_COMMAND_DISPATCHER_HPP #endif // CPPA_OPENCL_COMMAND_DISPATCHER_HPP
...@@ -244,4 +244,8 @@ void command_dispatcher::dispose() { ...@@ -244,4 +244,8 @@ void command_dispatcher::dispose() {
delete this; delete this;
} }
command_dispatcher* get_command_dispatcher() {
return detail::singleton_manager::get_command_dispatcher();
}
} } // namespace cppa::opencl } } // namespace cppa::opencl
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment