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
7076ae18
Commit
7076ae18
authored
Sep 11, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation of set_scheduler
parent
684109af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libcaf_core/caf/scheduler.hpp
libcaf_core/caf/scheduler.hpp
+2
-1
No files found.
libcaf_core/caf/scheduler.hpp
View file @
7076ae18
...
@@ -405,10 +405,11 @@ void set_scheduler(scheduler::abstract_coordinator* ptr);
...
@@ -405,10 +405,11 @@ void set_scheduler(scheduler::abstract_coordinator* ptr);
/**
/**
* Sets a user-defined scheduler using given policies. The scheduler
* Sets a user-defined scheduler using given policies. The scheduler
* is instantiated with `nw` number of workers and allows each actor
* is instantiated with `nw` number of workers and allows each actor
* to consume up to `max_throughput` per resume (
0 means infinite
).
* to consume up to `max_throughput` per resume (
must be > 0
).
* @note This function must be used before actor is spawned. Dynamically
* @note This function must be used before actor is spawned. Dynamically
* changing the scheduler at runtime is not supported.
* changing the scheduler at runtime is not supported.
* @throws std::logic_error if a scheduler is already defined
* @throws std::logic_error if a scheduler is already defined
* @throws std::invalid_argument if `max_throughput == 0`
*/
*/
template
<
class
Policy
=
policy
::
work_stealing
>
template
<
class
Policy
=
policy
::
work_stealing
>
void
set_scheduler
(
size_t
nw
=
std
::
thread
::
hardware_concurrency
(),
void
set_scheduler
(
size_t
nw
=
std
::
thread
::
hardware_concurrency
(),
...
...
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