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
f004eac7
Commit
f004eac7
authored
Nov 07, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move `fail_state()` to `local_actor`
parent
a549eb38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
libcaf_core/caf/blocking_actor.hpp
libcaf_core/caf/blocking_actor.hpp
+0
-7
libcaf_core/caf/local_actor.hpp
libcaf_core/caf/local_actor.hpp
+7
-0
No files found.
libcaf_core/caf/blocking_actor.hpp
View file @
f004eac7
...
...
@@ -296,13 +296,6 @@ public:
/// is signalized to other actors after `act()` returns.
void
fail_state
(
error
err
);
// -- observers --------------------------------------------------------------
/// Returns the current exit reason.
inline
const
error
&
fail_state
()
{
return
fail_state_
;
}
// -- customization points ---------------------------------------------------
/// Blocks until at least one message is in the mailbox.
...
...
libcaf_core/caf/local_actor.hpp
View file @
f004eac7
...
...
@@ -290,6 +290,13 @@ public:
/// The default implementation throws a `std::logic_error`.
virtual
error
load_state
(
deserializer
&
source
,
const
unsigned
int
version
);
/// Returns the currently defined fail state. If this reason is not
/// `none` then the actor will terminate with this error after executing
/// the current message handler.
inline
const
error
&
fail_state
()
const
{
return
fail_state_
;
}
// -- here be dragons: end of public interface -------------------------------
/// @cond PRIVATE
...
...
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