Commit 3f687cd7 authored by Dominik Charousset's avatar Dominik Charousset

use message headers instead of different enqueues

this patch removes the functions `sync_enqueue` and `chained_sync_enqueue`;
instead, `enqueue` takes a message header that denotes wheter the message
is synchronous or asynchronous (this patch also prepares libcppa for the
addition of message routing and priorities)
parent e94734fd
......@@ -117,17 +117,10 @@ class actor_facade<Ret(Args...)> : public actor {
std::move(map_result)};
}
void sync_enqueue(const actor_ptr& sender, message_id id, any_tuple msg) override {
void enqueue(const message_header& hdr, any_tuple msg) override {
CPPA_LOG_TRACE("");
typename util::il_indices<util::type_list<Args...>>::type indices;
enqueue_impl(sender, msg, id, indices);
}
void enqueue(const actor_ptr& sender, any_tuple msg) override {
CPPA_LOG_TRACE("");
typename util::il_indices<util::type_list<Args...>>::type indices;
enqueue_impl(sender, msg, message_id{}, indices);
enqueue_impl(hdr.sender, msg, hdr.id, indices);
}
private:
......
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