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
cc024c4a
Commit
cc024c4a
authored
Nov 07, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename message_id::from_integer_value to make
parent
5634c340
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
libcaf_core/caf/message_id.hpp
libcaf_core/caf/message_id.hpp
+6
-6
libcaf_io/src/instance.cpp
libcaf_io/src/instance.cpp
+2
-2
No files found.
libcaf_core/caf/message_id.hpp
View file @
cc024c4a
...
...
@@ -30,6 +30,7 @@
#include "caf/meta/type_name.hpp"
#include "caf/detail/comparable.hpp"
#include "caf/detail/type_traits.hpp"
namespace
caf
{
...
...
@@ -116,12 +117,6 @@ public:
return
value_
;
}
static
inline
message_id
from_integer_value
(
uint64_t
value
)
{
message_id
result
;
result
.
value_
=
value
;
return
result
;
}
static
constexpr
message_id
make
()
{
return
message_id
{};
}
...
...
@@ -130,6 +125,11 @@ public:
return
prio
==
message_priority
::
high
?
high_prioity_flag_mask
:
0
;
}
template
<
class
Int
,
class
E
=
detail
::
enable_if_tt
<
std
::
is_integral
<
Int
>
>>
static
constexpr
message_id
make
(
Int
value
)
{
return
{
static_cast
<
uint64_t
>
(
value
)};
}
long
compare
(
const
message_id
&
other
)
const
{
return
(
value_
==
other
.
value_
)
?
0
:
(
value_
<
other
.
value_
?
-
1
:
1
);
...
...
libcaf_io/src/instance.cpp
View file @
cc024c4a
...
...
@@ -219,11 +219,11 @@ connection_state instance::handle(execution_unit* ctx,
CAF_LOG_DEBUG
(
CAF_ARG
(
forwarding_stack
)
<<
CAF_ARG
(
msg
));
if
(
hdr
.
has
(
header
::
named_receiver_flag
))
callee_
.
deliver
(
hdr
.
source_node
,
hdr
.
source_actor
,
receiver_name
,
message_id
::
from_integer_valu
e
(
hdr
.
operation_data
),
message_id
::
mak
e
(
hdr
.
operation_data
),
forwarding_stack
,
msg
);
else
callee_
.
deliver
(
hdr
.
source_node
,
hdr
.
source_actor
,
hdr
.
dest_actor
,
message_id
::
from_integer_valu
e
(
hdr
.
operation_data
),
message_id
::
mak
e
(
hdr
.
operation_data
),
forwarding_stack
,
msg
);
break
;
}
...
...
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