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
5ec54456
Commit
5ec54456
authored
Sep 24, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code + coding style nitpicks
parent
d2ba1d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
libcaf_core/caf/scheduler/worker.hpp
libcaf_core/caf/scheduler/worker.hpp
+5
-11
No files found.
libcaf_core/caf/scheduler/worker.hpp
View file @
5ec54456
...
@@ -43,10 +43,11 @@ class worker : public execution_unit {
...
@@ -43,10 +43,11 @@ class worker : public execution_unit {
using
coordinator_ptr
=
coordinator
<
Policy
>*
;
using
coordinator_ptr
=
coordinator
<
Policy
>*
;
using
policy_data
=
typename
Policy
::
worker_data
;
using
policy_data
=
typename
Policy
::
worker_data
;
worker
(
size_t
id
,
coordinator_ptr
parent
,
size_t
max_throughput
)
{
worker
(
size_t
id
,
coordinator_ptr
parent
,
size_t
max_throughput
)
m_max_throughput
=
max_throughput
;
:
m_max_throughput
(
max_throughput
),
m_id
=
id
;
m_id
(
id
),
m_parent
=
parent
;
m_parent
(
parent
)
{
// nop
}
}
void
start
()
{
void
start
()
{
...
@@ -83,13 +84,6 @@ class worker : public execution_unit {
...
@@ -83,13 +84,6 @@ class worker : public execution_unit {
m_policy
.
internal_enqueue
(
this
,
job
);
m_policy
.
internal_enqueue
(
this
,
job
);
}
}
// go on a raid in quest for a shiny new job
job_ptr
raid
()
{
auto
result
=
m_policy
.
raid
(
this
);
CAF_LOG_DEBUG_IF
(
result
,
"got actor with id "
<<
id_of
(
result
));
return
result
;
}
coordinator_ptr
parent
()
{
coordinator_ptr
parent
()
{
return
m_parent
;
return
m_parent
;
}
}
...
...
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