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
54eb21c4
Commit
54eb21c4
authored
Oct 12, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use actor_id rather than uint32_t as ctor argument
parent
d6aedd57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cppa/actor.hpp
cppa/actor.hpp
+1
-1
src/actor.cpp
src/actor.cpp
+3
-3
No files found.
cppa/actor.hpp
View file @
54eb21c4
...
@@ -185,7 +185,7 @@ class actor : public channel {
...
@@ -185,7 +185,7 @@ class actor : public channel {
actor
(
const
process_information_ptr
&
parent
=
process_information
::
get
());
actor
(
const
process_information_ptr
&
parent
=
process_information
::
get
());
actor
(
std
::
uint32_t
aid
,
actor
(
actor_id
aid
,
const
process_information_ptr
&
parent
=
process_information
::
get
());
const
process_information_ptr
&
parent
=
process_information
::
get
());
private:
private:
...
...
src/actor.cpp
View file @
54eb21c4
...
@@ -54,8 +54,8 @@ inline cppa::detail::actor_registry& registry() {
...
@@ -54,8 +54,8 @@ inline cppa::detail::actor_registry& registry() {
namespace
cppa
{
namespace
cppa
{
actor
::
actor
(
std
::
uint32_t
aid
,
const
process_information_ptr
&
pptr
)
actor
::
actor
(
actor_id
aid
,
const
process_information_ptr
&
pptr
)
:
m_id
(
aid
),
m_is_proxy
(
true
),
m_parent_process
(
pptr
)
{
:
m_id
(
aid
),
m_is_proxy
(
true
),
m_parent_process
(
pptr
)
{
if
(
!
pptr
)
{
if
(
!
pptr
)
{
throw
std
::
logic_error
(
"parent == nullptr"
);
throw
std
::
logic_error
(
"parent == nullptr"
);
}
}
...
@@ -72,7 +72,7 @@ bool actor::chained_sync_enqueue(actor* ptr, message_id_t id, any_tuple msg) {
...
@@ -72,7 +72,7 @@ bool actor::chained_sync_enqueue(actor* ptr, message_id_t id, any_tuple msg) {
}
}
actor
::
actor
(
const
process_information_ptr
&
pptr
)
actor
::
actor
(
const
process_information_ptr
&
pptr
)
:
m_id
(
registry
().
next_id
()),
m_is_proxy
(
false
),
m_parent_process
(
pptr
)
{
:
m_id
(
registry
().
next_id
()),
m_is_proxy
(
false
),
m_parent_process
(
pptr
)
{
if
(
!
pptr
)
{
if
(
!
pptr
)
{
throw
std
::
logic_error
(
"parent == nullptr"
);
throw
std
::
logic_error
(
"parent == nullptr"
);
}
}
...
...
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