Commit 06183076 authored by Dominik Charousset's avatar Dominik Charousset

Coding style nitpicks

parent 73f8c999
...@@ -33,28 +33,26 @@ namespace policy { ...@@ -33,28 +33,26 @@ namespace policy {
* An actor that is scheduled or otherwise managed. * An actor that is scheduled or otherwise managed.
*/ */
class sequential_invoke : public invoke_policy<sequential_invoke> { class sequential_invoke : public invoke_policy<sequential_invoke> {
public: public:
inline bool hm_should_skip(mailbox_element*) {
inline bool hm_should_skip(mailbox_element*) { return false; } return false;
}
template <class Actor> template <class Actor>
inline mailbox_element* hm_begin(Actor* self, mailbox_element* node) { mailbox_element* hm_begin(Actor* self, mailbox_element* node) {
auto previous = self->current_node();
self->current_node(node); self->current_node(node);
return previous; return nullptr;
} }
template <class Actor> template <class Actor>
inline void hm_cleanup(Actor* self, mailbox_element*) { void hm_cleanup(Actor* self, mailbox_element*) {
self->current_node(self->dummy_node()); self->current_node(self->dummy_node());
} }
template <class Actor> template <class Actor>
inline void hm_revert(Actor* self, mailbox_element* previous) { void hm_revert(Actor* self, mailbox_element*) {
self->current_node(previous); self->current_node(self->dummy_node());
} }
}; };
} // namespace policy } // namespace policy
......
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