Commit 984b08fd authored by Dominik Charousset's avatar Dominik Charousset

some code maintenance in scheduler

parent fe066ad0
...@@ -77,10 +77,6 @@ local_actor* fwd(U& arg, typename std::enable_if<is_self<T>::value>::type* = 0){ ...@@ -77,10 +77,6 @@ local_actor* fwd(U& arg, typename std::enable_if<is_self<T>::value>::type* = 0){
*/ */
class scheduler { class scheduler {
scheduler_helper* m_helper;
const actor_ptr& delayed_send_helper();
friend class detail::singleton_manager; friend class detail::singleton_manager;
protected: protected:
...@@ -100,12 +96,6 @@ class scheduler { ...@@ -100,12 +96,6 @@ class scheduler {
*/ */
virtual void destroy(); virtual void destroy();
private:
static scheduler* create_singleton();
inline void dispose() { delete this; }
public: public:
typedef std::function<void(local_actor*)> init_callback; typedef std::function<void(local_actor*)> init_callback;
...@@ -182,6 +172,16 @@ class scheduler { ...@@ -182,6 +172,16 @@ class scheduler {
detail::fwd<Ts>(as)...)); detail::fwd<Ts>(as)...));
} }
private:
static scheduler* create_singleton();
inline void dispose() { delete this; }
const actor_ptr& delayed_send_helper();
scheduler_helper* m_helper;
}; };
/** /**
......
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