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
caa6aa6e
Commit
caa6aa6e
authored
Apr 06, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid implicit conversions (fix GCC build errors)
parent
68e0e638
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+2
-1
libcaf_core/test/mock_streaming_classes.cpp
libcaf_core/test/mock_streaming_classes.cpp
+3
-3
libcaf_core/test/native_streaming_classes.cpp
libcaf_core/test/native_streaming_classes.cpp
+3
-1
No files found.
libcaf_core/src/scheduled_actor.cpp
View file @
caa6aa6e
...
@@ -820,8 +820,9 @@ scheduled_actor::urgent_queue& scheduled_actor::get_urgent_queue() {
...
@@ -820,8 +820,9 @@ scheduled_actor::urgent_queue& scheduled_actor::get_urgent_queue() {
inbound_path
*
scheduled_actor
::
make_inbound_path
(
stream_manager_ptr
mgr
,
inbound_path
*
scheduled_actor
::
make_inbound_path
(
stream_manager_ptr
mgr
,
stream_slots
slots
,
stream_slots
slots
,
strong_actor_ptr
sender
)
{
strong_actor_ptr
sender
)
{
using
policy_type
=
policy
::
downstream_messages
::
nested
;
auto
&
qs
=
mailbox_
.
queue
().
queues
();
auto
&
qs
=
mailbox_
.
queue
().
queues
();
auto
res
=
get
<
2
>
(
qs
).
queues
().
emplace
(
slots
.
receiver
,
nullptr
);
auto
res
=
get
<
2
>
(
qs
).
queues
().
emplace
(
slots
.
receiver
,
policy_type
{
nullptr
}
);
if
(
!
res
.
second
)
if
(
!
res
.
second
)
return
nullptr
;
return
nullptr
;
auto
path
=
new
inbound_path
(
std
::
move
(
mgr
),
slots
,
std
::
move
(
sender
));
auto
path
=
new
inbound_path
(
std
::
move
(
mgr
),
slots
,
std
::
move
(
sender
));
...
...
libcaf_core/test/mock_streaming_classes.cpp
View file @
caa6aa6e
...
@@ -303,8 +303,8 @@ struct entity {
...
@@ -303,8 +303,8 @@ struct entity {
mbox_queue
mbox
;
mbox_queue
mbox
;
const
char
*
name
;
const
char
*
name
;
entity
(
const
char
*
cstr_name
)
entity
(
const
char
*
cstr_name
)
:
mbox
(
mbox_policy
{},
handshake_queue_policy
{},
nullptr
,
:
mbox
(
mbox_policy
{},
handshake_queue_policy
{},
dmsg_queue_policy
{}),
umsg_queue_policy
{
nullptr
},
dmsg_queue_policy
{}),
name
(
cstr_name
)
{
name
(
cstr_name
)
{
// nop
// nop
}
}
...
@@ -338,7 +338,7 @@ struct entity {
...
@@ -338,7 +338,7 @@ struct entity {
// Create a new queue in the mailbox for incoming traffic.
// Create a new queue in the mailbox for incoming traffic.
get
<
2
>
(
mbox
.
queues
())
get
<
2
>
(
mbox
.
queues
())
.
queues
()
.
queues
()
.
emplace
(
slot
,
std
::
unique_ptr
<
in
>
{
new
in
(
mgr
)
});
.
emplace
(
slot
,
inner_dmsg_queue_policy
{
std
::
unique_ptr
<
in
>
{
new
in
(
mgr
)}
});
// Acknowledge stream.
// Acknowledge stream.
sender
->
enqueue
<
umsg
>
(
this
,
id
.
invert
(),
umsg
::
ack_handshake
{
10
});
sender
->
enqueue
<
umsg
>
(
this
,
id
.
invert
(),
umsg
::
ack_handshake
{
10
});
}
}
...
...
libcaf_core/test/native_streaming_classes.cpp
View file @
caa6aa6e
...
@@ -352,7 +352,9 @@ public:
...
@@ -352,7 +352,9 @@ public:
inbound_path
*
make_inbound_path
(
stream_manager_ptr
mgr
,
stream_slots
slots
,
inbound_path
*
make_inbound_path
(
stream_manager_ptr
mgr
,
stream_slots
slots
,
strong_actor_ptr
sender
)
override
{
strong_actor_ptr
sender
)
override
{
auto
res
=
get
<
2
>
(
mbox
.
queues
()).
queues
().
emplace
(
slots
.
receiver
,
nullptr
);
using
policy_type
=
policy
::
downstream_messages
::
nested
;
auto
res
=
get
<
2
>
(
mbox
.
queues
())
.
queues
().
emplace
(
slots
.
receiver
,
policy_type
{
nullptr
});
if
(
!
res
.
second
)
if
(
!
res
.
second
)
return
nullptr
;
return
nullptr
;
auto
path
=
new
inbound_path
(
std
::
move
(
mgr
),
slots
,
std
::
move
(
sender
));
auto
path
=
new
inbound_path
(
std
::
move
(
mgr
),
slots
,
std
::
move
(
sender
));
...
...
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