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
8aef33d3
Commit
8aef33d3
authored
Jun 12, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintenance
parent
c7f82fad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/yielding_actor.cpp
src/yielding_actor.cpp
+3
-5
No files found.
src/yielding_actor.cpp
View file @
8aef33d3
...
...
@@ -94,12 +94,11 @@ void yielding_actor::dequeue(partial_function& fun) {
void
yielding_actor
::
dequeue
(
behavior
&
bhvr
)
{
if
(
bhvr
.
timeout
().
valid
()
==
false
)
{
// suppress virtual function call
yielding_actor
::
dequeue
(
bhvr
.
get_partial_function
());
m_recv_policy
.
receive
(
this
,
bhvr
.
get_partial_function
());
}
else
if
(
m_recv_policy
.
invoke_from_cache
(
this
,
bhvr
)
==
false
)
{
if
(
bhvr
.
timeout
().
is_zero
())
{
for
(
auto
e
=
m_mailbox
.
try_pop
();
e
!=
nullptr
;
e
=
m_mailbox
.
try_pop
())
{
for
(
auto
e
=
m_mailbox
.
try_pop
();
e
!=
0
;
e
=
m_mailbox
.
try_pop
())
{
CPPA_REQUIRE
(
e
->
marked
==
false
);
if
(
m_recv_policy
.
invoke
(
this
,
e
,
bhvr
))
return
;
}
...
...
@@ -140,8 +139,7 @@ void yielding_actor::resume(util::fiber* from, scheduler::callback* callback) {
break
;
}
default:
{
// illegal state
exit
(
8
);
CPPA_CRITICAL
(
"illegal state"
);
}
}
}
...
...
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