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
3fc3b630
Commit
3fc3b630
authored
Jun 12, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
18aa5318
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
libcaf_core/caf/detail/simple_actor_clock.hpp
libcaf_core/caf/detail/simple_actor_clock.hpp
+1
-3
libcaf_core/src/simple_actor_clock.cpp
libcaf_core/src/simple_actor_clock.cpp
+2
-2
No files found.
libcaf_core/caf/detail/simple_actor_clock.hpp
View file @
3fc3b630
...
@@ -38,8 +38,6 @@ class simple_actor_clock : public actor_clock {
...
@@ -38,8 +38,6 @@ class simple_actor_clock : public actor_clock {
public:
public:
// -- member types -----------------------------------------------------------
// -- member types -----------------------------------------------------------
using
super
=
simple_actor_clock
;
struct
event
;
struct
event
;
struct
delayed_event
;
struct
delayed_event
;
...
@@ -136,7 +134,7 @@ public:
...
@@ -136,7 +134,7 @@ public:
/// A delayed `sec::request_timeout` error that gets cancelled when the
/// A delayed `sec::request_timeout` error that gets cancelled when the
/// request arrives in time.
/// request arrives in time.
struct
request_timeout
final
:
delayed_event
{
struct
request_timeout
final
:
delayed_event
{
static
constexpr
bool
cancellable
=
true
;
static
constexpr
bool
cancellable
=
true
;
request_timeout
(
time_point
due
,
strong_actor_ptr
self
,
message_id
id
)
request_timeout
(
time_point
due
,
strong_actor_ptr
self
,
message_id
id
)
...
...
libcaf_core/src/simple_actor_clock.cpp
View file @
3fc3b630
...
@@ -94,7 +94,7 @@ void simple_actor_clock::ship(delayed_event& x) {
...
@@ -94,7 +94,7 @@ void simple_actor_clock::ship(delayed_event& x) {
break
;
break
;
}
}
case
multi_timeout_type
:
{
case
multi_timeout_type
:
{
auto
&
dref
=
static_cast
<
ordinary
_timeout
&>
(
x
);
auto
&
dref
=
static_cast
<
multi
_timeout
&>
(
x
);
auto
&
self
=
dref
.
self
;
auto
&
self
=
dref
.
self
;
self
->
get
()
->
eq_impl
(
make_message_id
(),
self
,
nullptr
,
self
->
get
()
->
eq_impl
(
make_message_id
(),
self
,
nullptr
,
timeout_msg
{
dref
.
type
,
dref
.
id
});
timeout_msg
{
dref
.
type
,
dref
.
id
});
...
@@ -134,7 +134,7 @@ void simple_actor_clock::handle(const ordinary_timeout_cancellation& x) {
...
@@ -134,7 +134,7 @@ void simple_actor_clock::handle(const ordinary_timeout_cancellation& x) {
void
simple_actor_clock
::
handle
(
const
multi_timeout_cancellation
&
x
)
{
void
simple_actor_clock
::
handle
(
const
multi_timeout_cancellation
&
x
)
{
auto
pred
=
[
&
](
const
actor_lookup_map
::
value_type
&
kvp
)
{
auto
pred
=
[
&
](
const
actor_lookup_map
::
value_type
&
kvp
)
{
auto
&
y
=
*
kvp
.
second
->
second
;
auto
&
y
=
*
kvp
.
second
->
second
;
if
(
y
.
subtype
!=
ordinary
_timeout_type
)
if
(
y
.
subtype
!=
multi
_timeout_type
)
return
false
;
return
false
;
auto
&
dref
=
static_cast
<
const
multi_timeout
&>
(
y
);
auto
&
dref
=
static_cast
<
const
multi_timeout
&>
(
y
);
return
x
.
type
==
dref
.
type
&&
x
.
id
==
dref
.
id
;
return
x
.
type
==
dref
.
type
&&
x
.
id
==
dref
.
id
;
...
...
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