Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
7542d1f9
Commit
7542d1f9
authored
Sep 04, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete `unallowed_function_call`
parent
7f446d8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
libcaf_core/caf/exit_reason.hpp
libcaf_core/caf/exit_reason.hpp
+0
-7
libcaf_core/src/exit_reason.cpp
libcaf_core/src/exit_reason.cpp
+1
-1
libcaf_core/src/local_actor.cpp
libcaf_core/src/local_actor.cpp
+0
-12
No files found.
libcaf_core/caf/exit_reason.hpp
View file @
7542d1f9
...
...
@@ -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.
...
...
libcaf_core/src/exit_reason.cpp
View file @
7542d1f9
...
...
@@ -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"
};
...
...
libcaf_core/src/local_actor.cpp
View file @
7542d1f9
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment