Permalink
Browse files

added get_command_dispatcher convenience function

  • Loading branch information...
Neverlord committed Mar 21, 2013
1 parent 8b6f6cb commit 68b2861fc01e41ccc13225dea21921a1068c0731
Showing with 8 additions and 3 deletions.
  1. +4 −3 cppa/opencl/command_dispatcher.hpp
  2. +4 −0 src/opencl/command_dispatcher.cpp
@@ -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
@@ -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

0 comments on commit 68b2861

Please sign in to comment.