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
9b40c088
Commit
9b40c088
authored
Jul 02, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build and unit test failures
parent
0f92232c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
19 deletions
+22
-19
libcaf_core/caf/read_inspector.hpp
libcaf_core/caf/read_inspector.hpp
+14
-11
libcaf_core/test/actor_profiler.cpp
libcaf_core/test/actor_profiler.cpp
+1
-1
libcaf_core/test/tracing_data.cpp
libcaf_core/test/tracing_data.cpp
+6
-6
libcaf_io/test/detail/prometheus_broker.cpp
libcaf_io/test/detail/prometheus_broker.cpp
+1
-1
No files found.
libcaf_core/caf/read_inspector.hpp
View file @
9b40c088
...
...
@@ -49,17 +49,20 @@ public:
static
constexpr
bool
writes_state
=
false
;
template
<
class
...
Ts
>
auto
operator
()(
Ts
&&
...
xs
)
{
using
result_type
=
typename
Subtype
::
result_type
;
if
constexpr
(
std
::
is_same
<
result_type
,
void
>::
value
)
{
auto
dummy
=
unit
;
static_cast
<
void
>
((
try_apply
(
dummy
,
xs
)
&&
...));
}
else
{
typename
Subtype
::
result_type
result
;
static_cast
<
void
>
((
try_apply
(
result
,
xs
)
&&
...));
return
result
;
}
template
<
class
Sub
=
Subtype
,
class
...
Ts
>
std
::
enable_if_t
<
std
::
is_same
<
typename
Sub
::
result_type
,
void
>::
value
>
operator
()(
Ts
&&
...
xs
)
{
auto
dummy
=
unit
;
static_cast
<
void
>
((
try_apply
(
dummy
,
xs
)
&&
...));
}
template
<
class
Sub
=
Subtype
,
class
...
Ts
>
std
::
enable_if_t
<!
std
::
is_same
<
typename
Sub
::
result_type
,
void
>::
value
,
typename
Sub
::
result_type
>
operator
()(
Ts
&&
...
xs
)
{
auto
result
=
typename
Sub
::
result_type
{};
static_cast
<
void
>
((
try_apply
(
result
,
xs
)
&&
...));
return
result
;
}
private:
...
...
libcaf_core/test/actor_profiler.cpp
View file @
9b40c088
...
...
@@ -112,7 +112,7 @@ struct fixture {
# define NAMED_ACTOR_STATE(type) \
struct type##_state { \
const char* name = #type;
\
static inline const char* name = #type;
\
}
NAMED_ACTOR_STATE
(
bar
);
...
...
libcaf_core/test/tracing_data.cpp
View file @
9b40c088
...
...
@@ -99,14 +99,14 @@ public:
// nop
}
void
before_sending
(
const
local_actor
&
self
,
mailbox_element
&
element
)
override
{
void
before_sending
(
const
local_actor
&
self
,
mailbox_element
&
element
)
override
{
element
.
tracing_id
.
reset
(
new
dummy_tracing_data
(
self
.
name
()));
}
void
before_sending_scheduled
(
const
local_actor
&
self
,
actor_clock
::
time_point
,
mailbox_element
&
element
)
override
{
void
before_sending_scheduled
(
const
local_actor
&
self
,
actor_clock
::
time_point
,
mailbox_element
&
element
)
override
{
element
.
tracing_id
.
reset
(
new
dummy_tracing_data
(
self
.
name
()));
}
};
...
...
@@ -154,7 +154,7 @@ const std::string& tracing_id(local_actor* self) {
# define NAMED_ACTOR_STATE(type) \
struct type##_state { \
const char* name = #type;
\
static inline const char* name = #type;
\
}
NAMED_ACTOR_STATE
(
alice
);
...
...
libcaf_io/test/detail/prometheus_broker.cpp
View file @
9b40c088
...
...
@@ -79,7 +79,7 @@ CAF_TEST(the prometheus broker responds to HTTP get requests) {
"Content-Type: text/plain
\r\n
"
"Connection: Closed
\r\n\r\n
"
;
CAF_CHECK
(
starts_with
(
response
,
ok_header
));
CAF_CHECK
(
contains
(
response
,
"
\n
caf_running_actors 2 "
));
CAF_CHECK
(
contains
(
response
,
"
\n
caf_
system_
running_actors 2 "
));
if
(
detail
::
prometheus_broker
::
has_process_metrics
())
{
CAF_CHECK
(
contains
(
response
,
"
\n
process_cpu_seconds_total "
));
CAF_CHECK
(
contains
(
response
,
"
\n
process_resident_memory_bytes "
));
...
...
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