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
0b175adc
Commit
0b175adc
authored
Mar 12, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting and documentation
parent
123506b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
+17
-16
libcaf_core/src/message.cpp
libcaf_core/src/message.cpp
+1
-1
libcaf_io/caf/io/basp/message_queue.hpp
libcaf_io/caf/io/basp/message_queue.hpp
+12
-12
libcaf_io/caf/io/basp/remote_message_handler.hpp
libcaf_io/caf/io/basp/remote_message_handler.hpp
+1
-1
libcaf_io/src/basp_broker.cpp
libcaf_io/src/basp_broker.cpp
+3
-2
No files found.
libcaf_core/src/message.cpp
View file @
0b175adc
...
@@ -156,7 +156,7 @@ error message::load(deserializer& source) {
...
@@ -156,7 +156,7 @@ error message::load(deserializer& source) {
return
none
;
return
none
;
}
}
error
message
::
save
(
serializer
&
sink
,
const
type_erased_tuple
&
x
){
error
message
::
save
(
serializer
&
sink
,
const
type_erased_tuple
&
x
)
{
if
(
sink
.
context
()
==
nullptr
)
if
(
sink
.
context
()
==
nullptr
)
return
sec
::
no_context
;
return
sec
::
no_context
;
// build type name
// build type name
...
...
libcaf_io/caf/io/basp/message_queue.hpp
View file @
0b175adc
...
@@ -47,6 +47,18 @@ public:
...
@@ -47,6 +47,18 @@ public:
message_queue
();
message_queue
();
// -- mutators ---------------------------------------------------------------
/// Adds a new message to the queue or deliver it immediately if possible.
void
push
(
execution_unit
*
ctx
,
uint64_t
id
,
strong_actor_ptr
receiver
,
mailbox_element_ptr
content
);
/// Marks given ID as dropped, effectively skipping it without effect.
void
drop
(
execution_unit
*
ctx
,
uint64_t
id
);
/// Returns the next ascending ID.
uint64_t
new_id
();
// -- member variables -------------------------------------------------------
// -- member variables -------------------------------------------------------
/// Protects all other properties.
/// Protects all other properties.
...
@@ -62,18 +74,6 @@ public:
...
@@ -62,18 +74,6 @@ public:
/// Keeps messages in sorted order in case a message other than
/// Keeps messages in sorted order in case a message other than
/// `next_undelivered` gets ready first.
/// `next_undelivered` gets ready first.
std
::
vector
<
actor_msg
>
pending
;
std
::
vector
<
actor_msg
>
pending
;
// -- mutators ---------------------------------------------------------------
/// Adds a new message to the queue or deliver it immediately if possible.
void
push
(
execution_unit
*
ctx
,
uint64_t
id
,
strong_actor_ptr
receiver
,
mailbox_element_ptr
content
);
/// Marks given ID as dropped, effectively skipping it without effect.
void
drop
(
execution_unit
*
ctx
,
uint64_t
id
);
/// Returns the next ascending ID.
uint64_t
new_id
();
};
};
}
// namespace basp
}
// namespace basp
...
...
libcaf_io/caf/io/basp/remote_message_handler.hpp
View file @
0b175adc
...
@@ -61,7 +61,7 @@ public:
...
@@ -61,7 +61,7 @@ public:
dst
=
sys
.
registry
().
get
(
static_cast
<
atom_value
>
(
dref
.
hdr_
.
dest_actor
));
dst
=
sys
.
registry
().
get
(
static_cast
<
atom_value
>
(
dref
.
hdr_
.
dest_actor
));
else
else
dst
=
sys
.
registry
().
get
(
dref
.
hdr_
.
dest_actor
);
dst
=
sys
.
registry
().
get
(
dref
.
hdr_
.
dest_actor
);
// Short circuit i
t
we already know there's nothing to do.
// Short circuit i
f
we already know there's nothing to do.
if
(
dst
==
nullptr
&&
!
mid
.
is_request
())
{
if
(
dst
==
nullptr
&&
!
mid
.
is_request
())
{
CAF_LOG_INFO
(
"drop asynchronous remote message: unknown destination"
);
CAF_LOG_INFO
(
"drop asynchronous remote message: unknown destination"
);
return
;
return
;
...
...
libcaf_io/src/basp_broker.cpp
View file @
0b175adc
...
@@ -467,7 +467,7 @@ void basp_broker::learned_new_node(const node_id& nid) {
...
@@ -467,7 +467,7 @@ void basp_broker::learned_new_node(const node_id& nid) {
}
}
void
basp_broker
::
learned_new_node_directly
(
const
node_id
&
nid
,
void
basp_broker
::
learned_new_node_directly
(
const
node_id
&
nid
,
bool
was_indirectly_before
)
{
bool
was_indirectly_before
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
nid
));
CAF_LOG_TRACE
(
CAF_ARG
(
nid
));
if
(
!
was_indirectly_before
)
if
(
!
was_indirectly_before
)
learned_new_node
(
nid
);
learned_new_node
(
nid
);
...
@@ -533,7 +533,8 @@ void basp_broker::connection_cleanup(connection_handle hdl) {
...
@@ -533,7 +533,8 @@ void basp_broker::connection_cleanup(connection_handle hdl) {
}
}
}
}
basp_broker
::
buffer_type
&
basp_broker
::
get_buffer
(
connection_handle
hdl
)
{
basp
::
instance
::
callee
::
buffer_type
&
basp_broker
::
get_buffer
(
connection_handle
hdl
)
{
return
wr_buf
(
hdl
);
return
wr_buf
(
hdl
);
}
}
...
...
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