Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added get_command_dispatcher convenience function

  • Loading branch information...
commit 68b2861fc01e41ccc13225dea21921a1068c0731 1 parent 8b6f6cb
@Neverlord Neverlord authored
View
7 cppa/opencl/command_dispatcher.hpp
@@ -187,10 +187,11 @@ class command_dispatcher {
};
#else // CPPA_OPENCL
-class command_dispatcher : public detail::singleton_mixin<command_dispatcher> {
-
-};
+class command_dispatcher : public detail::singleton_mixin<command_dispatcher> { };
#endif // CPPA_OPENCL
+
+command_dispatcher* get_command_dispatcher();
+
} } // namespace cppa::opencl
#endif // CPPA_OPENCL_COMMAND_DISPATCHER_HPP
View
4 src/opencl/command_dispatcher.cpp
@@ -244,4 +244,8 @@ void command_dispatcher::dispose() {
delete this;
}
+command_dispatcher* get_command_dispatcher() {
+ return detail::singleton_manager::get_command_dispatcher();
+}
+
} } // namespace cppa::opencl
Please sign in to comment.
Something went wrong with that request. Please try again.