Commit 7542d1f9 authored by Dominik Charousset's avatar Dominik Charousset

Remove obsolete `unallowed_function_call`

parent 7f446d8c
......@@ -41,13 +41,6 @@ static constexpr uint32_t normal = 0x00001;
*/
static constexpr uint32_t unhandled_exception = 0x00002;
/**
* Indicates that an event-based actor
* tried to use {@link receive()} or a strongly typed actor tried
* to call {@link become()}.
*/
static constexpr uint32_t unallowed_function_call = 0x00003;
/**
* Indicates that the actor received an unexpected
* synchronous reply message.
......
......@@ -27,7 +27,7 @@ constexpr const char* s_names_table[] = {
"not_exited",
"normal",
"unhandled_exception",
"unallowed_function_call",
"-invalid-",
"unhandled_sync_failure",
"unhandled_sync_timeout"
};
......
......@@ -166,18 +166,6 @@ void local_actor::quit(uint32_t reason) {
if (is_blocking()) {
throw actor_exited(reason);
}
if (reason == exit_reason::unallowed_function_call) {
// this is the only reason that causes an exception
cleanup(reason);
CAF_LOG_WARNING("actor tried to use a blocking function");
// when using receive(), the non-blocking nature of event-based
// actors breaks any assumption the user has about his code,
// in particular, receive_loop() is a deadlock when not throwing
// an exception here
aout(this) << "*** warning: event-based actor killed because it tried "
"to use receive()\n";
throw actor_exited(reason);
}
}
message_id local_actor::timed_sync_send_tuple_impl(message_priority mp,
......
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