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
144c66b0
Commit
144c66b0
authored
Aug 31, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
10a861f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
libcaf_core/caf/scheduled_actor.hpp
libcaf_core/caf/scheduled_actor.hpp
+2
-2
libcaf_core/src/actor_system.cpp
libcaf_core/src/actor_system.cpp
+1
-1
libcaf_core/src/policy/downstream_messages.cpp
libcaf_core/src/policy/downstream_messages.cpp
+3
-5
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+2
-3
No files found.
libcaf_core/caf/scheduled_actor.hpp
View file @
144c66b0
...
...
@@ -735,10 +735,10 @@ protected:
/// Pointer to a private thread object associated with a detached actor.
detail
::
private_thread
*
private_thread_
;
/// Ca
tche
metric objects for inbound stream traffic.
/// Ca
ches
metric objects for inbound stream traffic.
inbound_stream_metrics_map
inbound_stream_metrics_
;
/// Ca
tche
metric objects for outbound stream traffic.
/// Ca
ches
metric objects for outbound stream traffic.
outbound_stream_metrics_map
outbound_stream_metrics_
;
#ifdef CAF_ENABLE_EXCEPTIONS
...
...
libcaf_core/src/actor_system.cpp
View file @
144c66b0
...
...
@@ -258,7 +258,7 @@ auto make_actor_metric_families(telemetry::metric_registry& reg) {
reg
.
counter_family
(
"caf.actor.stream"
,
"processed-elements"
,
{
"name"
,
"type"
},
"Number of processed stream elements from upstream."
),
reg
.
gauge_family
(
"caf.actor.stream"
,
"input
_buffer_
size"
,
reg
.
gauge_family
(
"caf.actor.stream"
,
"input
-buffer-
size"
,
{
"name"
,
"type"
},
"Number of buffered stream elements from upstream."
),
reg
.
counter_family
(
...
...
libcaf_core/src/policy/downstream_messages.cpp
View file @
144c66b0
...
...
@@ -57,11 +57,9 @@ auto downstream_messages::quantum(const nested_queue_type& q,
}
void
downstream_messages
::
cleanup
(
nested_queue_type
&
sub_queue
)
noexcept
{
auto
&
handler
=
sub_queue
.
policy
().
handler
;
if
(
!
handler
)
return
;
if
(
auto
input_buffer_size
=
handler
->
metrics
.
input_buffer_size
)
input_buffer_size
->
dec
(
sub_queue
.
total_task_size
());
if
(
auto
handler
=
sub_queue
.
policy
().
handler
.
get
())
if
(
auto
input_buffer_size
=
handler
->
metrics
.
input_buffer_size
)
input_buffer_size
->
dec
(
sub_queue
.
total_task_size
());
}
bool
downstream_messages
::
push_back
(
nested_queue_type
&
sub_queue
,
...
...
libcaf_core/src/scheduled_actor.cpp
View file @
144c66b0
...
...
@@ -989,11 +989,10 @@ void scheduled_actor::erase_inbound_path_later(stream_slot slot, error reason) {
if
(
i
!=
e
)
{
auto
&
path
=
i
->
second
.
policy
().
handler
;
if
(
path
!=
nullptr
)
{
if
(
reason
==
none
)
{
if
(
reason
==
none
)
path
->
emit_regular_shutdown
(
this
);
}
else
{
else
path
->
emit_irregular_shutdown
(
this
,
std
::
move
(
reason
));
}
}
q
.
erase_later
(
slot
);
}
...
...
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