Commit 62767a6b authored by Dominik Charousset's avatar Dominik Charousset

Remove `exit_reason::unallowed_function_call`

The exit reason `unallowed_function_call` is a remains from older versions of
libcppa and is no longer used.
parent 272bbfaa
......@@ -41,13 +41,6 @@ static constexpr std::uint32_t normal = 0x00001;
*/
static constexpr std::uint32_t unhandled_exception = 0x00002;
/**
* @brief Indicates that an event-based actor
* tried to use {@link receive()} or a strongly typed actor tried
* to call {@link become()}.
*/
static constexpr std::uint32_t unallowed_function_call = 0x00003;
/**
* @brief Indicates that the actor received an unexpected
* synchronous reply message.
......
No preview for this file type
......@@ -63,8 +63,6 @@ To obtain a string representation of an error code, use \lstinline^cppa::exit_re
\hline
\lstinline^unhandled_exception^ & 2 & Actor was killed due to an unhandled exception \\
\hline
\lstinline^unallowed_function_call^ & 3 & Indicates that an event-based actor tried to use blocking receive calls \\
\hline
\lstinline^unhandled_sync_failure^ & 4 & Actor was killed due to an unexpected synchronous response message \\
\hline
\lstinline^unhandled_sync_timeout^ & 5 & Actor was killed, because no timeout handler was set and a synchronous message timed out \\
......
......@@ -167,18 +167,6 @@ void local_actor::cleanup(std::uint32_t reason) {
void local_actor::quit(std::uint32_t reason) {
CPPA_LOG_TRACE("reason = " << reason
<< ", class " << detail::demangle(typeid(*this)));
if (reason == exit_reason::unallowed_function_call) {
// this is the only reason that causes an exception
cleanup(reason);
CPPA_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);
}
planned_exit_reason(reason);
}
......
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