Commit 06183076 authored by Dominik Charousset's avatar Dominik Charousset

Coding style nitpicks

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