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
f81db0d3
Commit
f81db0d3
authored
Jun 19, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix initialization order of actor_system
parent
50d010ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libcaf_core/caf/actor_system.hpp
libcaf_core/caf/actor_system.hpp
+3
-3
libcaf_core/src/actor_system.cpp
libcaf_core/src/actor_system.cpp
+1
-1
No files found.
libcaf_core/caf/actor_system.hpp
View file @
f81db0d3
...
@@ -605,6 +605,9 @@ private:
...
@@ -605,6 +605,9 @@ private:
/// Used to generate ascending actor IDs.
/// Used to generate ascending actor IDs.
std
::
atomic
<
size_t
>
ids_
;
std
::
atomic
<
size_t
>
ids_
;
/// Manages all metrics collected by the system.
telemetry
::
metric_registry
metrics_
;
/// Identifies this actor system in a distributed setting.
/// Identifies this actor system in a distributed setting.
node_id
node_
;
node_id
node_
;
...
@@ -644,9 +647,6 @@ private:
...
@@ -644,9 +647,6 @@ private:
/// The system-wide, user-provided configuration.
/// The system-wide, user-provided configuration.
actor_system_config
&
cfg_
;
actor_system_config
&
cfg_
;
/// Manages all metrics collected by the system.
telemetry
::
metric_registry
metrics_
;
/// Stores whether the logger has run its destructor and stopped any thread,
/// Stores whether the logger has run its destructor and stopped any thread,
/// file handle, etc.
/// file handle, etc.
std
::
atomic
<
bool
>
logger_dtor_done_
;
std
::
atomic
<
bool
>
logger_dtor_done_
;
...
...
libcaf_core/src/actor_system.cpp
View file @
f81db0d3
...
@@ -219,6 +219,7 @@ actor_system::networking_module::~networking_module() {
...
@@ -219,6 +219,7 @@ actor_system::networking_module::~networking_module() {
actor_system
::
actor_system
(
actor_system_config
&
cfg
)
actor_system
::
actor_system
(
actor_system_config
&
cfg
)
:
profiler_
(
cfg
.
profiler
),
:
profiler_
(
cfg
.
profiler
),
ids_
(
0
),
ids_
(
0
),
metrics_
(
cfg
),
logger_
(
new
caf
::
logger
(
*
this
),
false
),
logger_
(
new
caf
::
logger
(
*
this
),
false
),
registry_
(
*
this
),
registry_
(
*
this
),
groups_
(
*
this
),
groups_
(
*
this
),
...
@@ -226,7 +227,6 @@ actor_system::actor_system(actor_system_config& cfg)
...
@@ -226,7 +227,6 @@ actor_system::actor_system(actor_system_config& cfg)
await_actors_before_shutdown_
(
true
),
await_actors_before_shutdown_
(
true
),
detached_
(
0
),
detached_
(
0
),
cfg_
(
cfg
),
cfg_
(
cfg
),
metrics_
(
cfg
),
logger_dtor_done_
(
false
),
logger_dtor_done_
(
false
),
tracing_context_
(
cfg
.
tracing_context
)
{
tracing_context_
(
cfg
.
tracing_context
)
{
CAF_SET_LOGGER_SYS
(
this
);
CAF_SET_LOGGER_SYS
(
this
);
...
...
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