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
ca538378
Commit
ca538378
authored
Apr 20, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better use of CPPA_REQUIRE in no_scheduling
parent
f15bba63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cppa/policy/no_scheduling.hpp
cppa/policy/no_scheduling.hpp
+2
-1
No files found.
cppa/policy/no_scheduling.hpp
View file @
ca538378
...
@@ -76,9 +76,9 @@ class no_scheduling {
...
@@ -76,9 +76,9 @@ class no_scheduling {
template
<
class
Actor
>
template
<
class
Actor
>
void
launch
(
Actor
*
self
,
execution_unit
*
)
{
void
launch
(
Actor
*
self
,
execution_unit
*
)
{
CPPA_REQUIRE
(
self
!=
nullptr
);
CPPA_PUSH_AID
(
self
->
id
());
CPPA_PUSH_AID
(
self
->
id
());
CPPA_LOG_TRACE
(
CPPA_ARG
(
self
));
CPPA_LOG_TRACE
(
CPPA_ARG
(
self
));
CPPA_REQUIRE
(
self
!=
nullptr
);
intrusive_ptr
<
Actor
>
mself
{
self
};
intrusive_ptr
<
Actor
>
mself
{
self
};
self
->
attach_to_scheduler
();
self
->
attach_to_scheduler
();
std
::
thread
([
=
]
{
std
::
thread
([
=
]
{
...
@@ -91,6 +91,7 @@ class no_scheduling {
...
@@ -91,6 +91,7 @@ class no_scheduling {
}
}
// await new data before resuming actor
// await new data before resuming actor
await_data
(
mself
.
get
());
await_data
(
mself
.
get
());
CPPA_REQUIRE
(
self
->
mailbox
().
blocked
()
==
false
);
}
}
self
->
detach_from_scheduler
();
self
->
detach_from_scheduler
();
}).
detach
();
}).
detach
();
...
...
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