brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | #ifndef __AOS_ASYNC_ACTION_RUNNER_H_ |
2 | #define __AOS_ASYNC_ACTION_RUNNER_H_ | ||||
3 | |||||
4 | #include "aos/atom_code/async_action/AsyncAction.h" | ||||
5 | |||||
6 | namespace aos { | ||||
7 | class AsyncActionRunner { | ||||
8 | public: | ||||
9 | template<class T, class S> inline static int Run(AsyncAction<T, S> &action, uint8_t priority) { | ||||
10 | return action.Run(priority); | ||||
11 | } | ||||
12 | }; | ||||
13 | } | ||||
14 | |||||
15 | #endif |