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
4947c203
Commit
4947c203
authored
Dec 16, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed chaining for exited context-switching actors
parent
74c0a1ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/context_switching_actor.cpp
src/context_switching_actor.cpp
+4
-0
No files found.
src/context_switching_actor.cpp
View file @
4947c203
...
...
@@ -96,12 +96,15 @@ resume_result context_switching_actor::resume(util::fiber* from, actor_ptr& next
for
(;;)
{
switch
(
call
(
&
m_fiber
,
from
))
{
case
yield_state
:
:
done
:
{
CPPA_REQUIRE
(
next_job
==
nullptr
);
m_chained_actor
.
swap
(
next_job
);
return
resume_result
::
actor_done
;
}
case
yield_state
:
:
ready
:
{
break
;
}
case
yield_state
:
:
blocked
:
{
CPPA_REQUIRE
(
next_job
==
nullptr
);
m_chained_actor
.
swap
(
next_job
);
CPPA_REQUIRE
(
m_chained_actor
==
nullptr
);
switch
(
compare_exchange_state
(
abstract_scheduled_actor
::
about_to_block
,
...
...
@@ -109,6 +112,7 @@ resume_result context_switching_actor::resume(util::fiber* from, actor_ptr& next
case
abstract_scheduled_actor
:
:
ready
:
{
// restore variables
m_chained_actor
.
swap
(
next_job
);
CPPA_REQUIRE
(
next_job
==
nullptr
);
break
;
}
case
abstract_scheduled_actor
:
:
blocked
:
{
...
...
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