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
5f04a5db
Commit
5f04a5db
authored
Jun 16, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed warning
parent
ff9c5280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
src/actor_proxy.cpp
src/actor_proxy.cpp
+13
-4
No files found.
src/actor_proxy.cpp
View file @
5f04a5db
...
@@ -5,6 +5,15 @@
...
@@ -5,6 +5,15 @@
#include "cppa/exit_reason.hpp"
#include "cppa/exit_reason.hpp"
#include "cppa/detail/mailman.hpp"
#include "cppa/detail/mailman.hpp"
namespace
{
inline
constexpr
std
::
uint64_t
to_int
(
cppa
::
atom_value
value
)
{
return
static_cast
<
std
::
uint64_t
>
(
value
);
}
}
namespace
cppa
{
namespace
cppa
{
actor_proxy
::
actor_proxy
(
std
::
uint32_t
mid
,
const
process_information_ptr
&
pptr
)
actor_proxy
::
actor_proxy
(
std
::
uint32_t
mid
,
const
process_information_ptr
&
pptr
)
...
@@ -34,21 +43,21 @@ void actor_proxy::enqueue(const message& msg)
...
@@ -34,21 +43,21 @@ void actor_proxy::enqueue(const message& msg)
&&
content
.
utype_info_at
(
0
)
==
typeid
(
atom_value
))
&&
content
.
utype_info_at
(
0
)
==
typeid
(
atom_value
))
{
{
auto
val
=
*
reinterpret_cast
<
const
atom_value
*>
(
content
.
at
(
0
));
auto
val
=
*
reinterpret_cast
<
const
atom_value
*>
(
content
.
at
(
0
));
switch
(
val
)
switch
(
to_int
(
val
)
)
{
{
case
atom
(
":Link"
):
case
to_int
(
atom
(
":Link"
)
):
{
{
auto
s
=
msg
.
sender
();
auto
s
=
msg
.
sender
();
link_to
(
s
);
link_to
(
s
);
return
;
return
;
}
}
case
atom
(
":Unlink"
):
case
to_int
(
atom
(
":Unlink"
)
):
{
{
auto
s
=
msg
.
sender
();
auto
s
=
msg
.
sender
();
unlink_from
(
s
);
unlink_from
(
s
);
return
;
return
;
}
}
case
atom
(
":KillProxy"
):
case
to_int
(
atom
(
":KillProxy"
)
):
{
{
if
(
content
.
size
()
==
2
if
(
content
.
size
()
==
2
&&
content
.
utype_info_at
(
1
)
==
typeid
(
std
::
uint32_t
))
&&
content
.
utype_info_at
(
1
)
==
typeid
(
std
::
uint32_t
))
...
...
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