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
a0d0f67c
Commit
a0d0f67c
authored
Mar 12, 2014
by
Neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed channel implementation
parent
3fd4d807
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
src/channel.cpp
src/channel.cpp
+0
-4
src/group_manager.cpp
src/group_manager.cpp
+1
-1
src/message_header.cpp
src/message_header.cpp
+2
-2
No files found.
src/channel.cpp
View file @
a0d0f67c
...
...
@@ -50,10 +50,6 @@ intptr_t channel::compare(const abstract_channel* lhs, const abstract_channel* r
channel
::
channel
(
abstract_channel
*
ptr
)
:
m_ptr
(
ptr
)
{
}
void
channel
::
enqueue
(
const
message_header
&
hdr
,
any_tuple
msg
)
const
{
if
(
m_ptr
)
m_ptr
->
enqueue
(
hdr
,
std
::
move
(
msg
));
}
intptr_t
channel
::
compare
(
const
channel
&
other
)
const
{
return
compare
(
m_ptr
.
get
(),
other
.
m_ptr
.
get
());
}
...
...
src/group_manager.cpp
View file @
a0d0f67c
...
...
@@ -75,7 +75,7 @@ class local_group : public abstract_group {
<<
CPPA_TARG
(
msg
,
to_string
));
shared_guard
guard
(
m_mtx
);
for
(
auto
&
s
:
m_subscribers
)
{
s
.
enqueue
(
hdr
,
msg
);
s
->
enqueue
(
hdr
,
msg
);
}
}
...
...
src/message_header.cpp
View file @
a0d0f67c
...
...
@@ -38,13 +38,13 @@ message_header::message_header(actor_addr source,
message_id
mid
)
:
sender
(
source
),
receiver
(
dest
),
id
(
mid
)
{
}
bool
operator
==
(
msg_hdr_cref
lhs
,
msg_hdr_cref
rhs
)
{
bool
operator
==
(
const
message_header
&
lhs
,
const
message_header
&
rhs
)
{
return
lhs
.
sender
==
rhs
.
sender
&&
lhs
.
receiver
==
rhs
.
receiver
&&
lhs
.
id
==
rhs
.
id
;
}
bool
operator
!=
(
msg_hdr_cref
lhs
,
msg_hdr_cref
rhs
)
{
bool
operator
!=
(
const
message_header
&
lhs
,
const
message_header
&
rhs
)
{
return
!
(
lhs
==
rhs
);
}
...
...
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