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
2c07267b
Commit
2c07267b
authored
Feb 23, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix thread_hook unit test
parent
e9afbc98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libcaf_core/test/thread_hook.cpp
libcaf_core/test/thread_hook.cpp
+2
-2
No files found.
libcaf_core/test/thread_hook.cpp
View file @
2c07267b
...
@@ -121,7 +121,7 @@ CAF_TEST(counting_system_without_actor) {
...
@@ -121,7 +121,7 @@ CAF_TEST(counting_system_without_actor) {
assumed_init_calls
=
1
;
assumed_init_calls
=
1
;
assumed_thread_count
=
get_or
(
cfg
,
"scheduler.max-threads"
,
assumed_thread_count
=
get_or
(
cfg
,
"scheduler.max-threads"
,
defaults
::
scheduler
::
max_threads
)
defaults
::
scheduler
::
max_threads
)
+
2
;
// caf.clock and caf.logger
+
1
;
// caf.clock
auto
&
sched
=
sys
.
scheduler
();
auto
&
sched
=
sys
.
scheduler
();
if
(
sched
.
detaches_utility_actors
())
if
(
sched
.
detaches_utility_actors
())
assumed_thread_count
+=
sched
.
num_utility_actors
();
assumed_thread_count
+=
sched
.
num_utility_actors
();
...
@@ -131,7 +131,7 @@ CAF_TEST(counting_system_with_actor) {
...
@@ -131,7 +131,7 @@ CAF_TEST(counting_system_with_actor) {
assumed_init_calls
=
1
;
assumed_init_calls
=
1
;
assumed_thread_count
=
get_or
(
cfg
,
"scheduler.max-threads"
,
assumed_thread_count
=
get_or
(
cfg
,
"scheduler.max-threads"
,
defaults
::
scheduler
::
max_threads
)
defaults
::
scheduler
::
max_threads
)
+
3
;
// caf.clock, caf.logger,
and detached actor
+
2
;
// caf.clock
and detached actor
auto
&
sched
=
sys
.
scheduler
();
auto
&
sched
=
sys
.
scheduler
();
if
(
sched
.
detaches_utility_actors
())
if
(
sched
.
detaches_utility_actors
())
assumed_thread_count
+=
sched
.
num_utility_actors
();
assumed_thread_count
+=
sched
.
num_utility_actors
();
...
...
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