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
aaced3c3
Commit
aaced3c3
authored
Nov 05, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tuned filter function
parent
04ddeb67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
src/yielding_message_queue.cpp
src/yielding_message_queue.cpp
+25
-20
No files found.
src/yielding_message_queue.cpp
View file @
aaced3c3
...
...
@@ -63,11 +63,13 @@ enum filter_result
yielding_message_queue_impl
::
filter_result
yielding_message_queue_impl
::
filter_msg
(
const
any_tuple
&
msg
)
{
if
(
m_trap_exit
==
false
&&
msg
.
size
()
==
2
&&
m_atom_value_uti
==
&
(
msg
.
utype_info_at
(
0
)))
if
(
msg
.
size
()
==
2
&&
m_atom_value_uti
==
&
(
msg
.
utype_info_at
(
0
)))
{
if
(
*
reinterpret_cast
<
const
atom_value
*>
(
msg
.
at
(
0
))
==
atom
(
":Exit"
))
switch
((
std
::
uint64_t
)
*
reinterpret_cast
<
const
atom_value
*>
(
msg
.
at
(
0
)))
{
case
atom
(
":Exit"
):
{
if
(
m_trap_exit
==
false
)
{
if
(
m_ui32_uti
==
&
(
msg
.
utype_info_at
(
1
)))
{
...
...
@@ -79,10 +81,9 @@ yielding_message_queue_impl::filter_msg(const any_tuple& msg)
return
normal_exit_signal
;
}
}
break
;
}
if
(
msg
.
size
()
==
2
&&
m_atom_value_uti
==
&
(
msg
.
utype_info_at
(
0
))
&&
atom
(
":Timeout"
)
==
*
reinterpret_cast
<
const
atom_value
*>
(
msg
.
at
(
0
)))
case
atom
(
":Timeout"
):
{
if
(
m_ui32_uti
==
&
(
msg
.
utype_info_at
(
1
)))
{
...
...
@@ -90,6 +91,10 @@ yielding_message_queue_impl::filter_msg(const any_tuple& msg)
return
(
id
==
m_active_timeout_id
)
?
timeout_message
:
expired_timeout_message
;
}
break
;
}
default:
break
;
/* nop */
}
}
return
ordinary_message
;
}
...
...
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