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
Hide 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,32 +63,37 @@ 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
)
))
{
if
(
m_ui32_uti
==
&
(
msg
.
utype_info_at
(
1
)))
case
atom
(
":Exit"
):
{
auto
why
=
*
reinterpret_cast
<
const
std
::
uint32_t
*>
(
msg
.
at
(
1
));
if
(
why
!=
exit_reason
::
normal
)
if
(
m_trap_exit
==
false
)
{
self
()
->
quit
(
why
);
if
(
m_ui32_uti
==
&
(
msg
.
utype_info_at
(
1
)))
{
auto
why
=
*
reinterpret_cast
<
const
std
::
uint32_t
*>
(
msg
.
at
(
1
));
if
(
why
!=
exit_reason
::
normal
)
{
self
()
->
quit
(
why
);
}
return
normal_exit_signal
;
}
}
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
)))
{
if
(
m_ui32_uti
==
&
(
msg
.
utype_info_at
(
1
)))
{
auto
id
=
*
reinterpret_cast
<
const
std
::
uint32_t
*>
(
msg
.
at
(
1
))
;
return
(
id
==
m_active_timeout_id
)
?
timeout_message
:
expired_timeout_message
;
case
atom
(
":Timeout"
):
{
if
(
m_ui32_uti
==
&
(
msg
.
utype_info_at
(
1
)))
{
auto
id
=
*
reinterpret_cast
<
const
std
::
uint32_t
*>
(
msg
.
at
(
1
));
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