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
984a2bcb
Commit
984a2bcb
authored
Jun 29, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to latest CAF API changes
parent
6d0fec16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/main.cpp
src/main.cpp
+7
-5
No files found.
src/main.cpp
View file @
984a2bcb
...
@@ -166,7 +166,8 @@ class cpp_binding : public binding {
...
@@ -166,7 +166,8 @@ class cpp_binding : public binding {
public:
public:
using
binding
::
binding
;
using
binding
::
binding
;
virtual
pybind11
::
object
to_object
(
message
&
xs
,
size_t
pos
)
const
=
0
;
virtual
pybind11
::
object
to_object
(
const
type_erased_tuple
&
xs
,
size_t
pos
)
const
=
0
;
};
};
template
<
class
T
>
template
<
class
T
>
...
@@ -178,7 +179,8 @@ public:
...
@@ -178,7 +179,8 @@ public:
xs
.
append
(
x
.
cast
<
T
>
());
xs
.
append
(
x
.
cast
<
T
>
());
}
}
pybind11
::
object
to_object
(
message
&
xs
,
size_t
pos
)
const
override
{
pybind11
::
object
to_object
(
const
type_erased_tuple
&
xs
,
size_t
pos
)
const
override
{
return
pybind11
::
cast
(
xs
.
get_as
<
T
>
(
pos
));
return
pybind11
::
cast
(
xs
.
get_as
<
T
>
(
pos
));
}
}
};
};
...
@@ -469,7 +471,7 @@ void py_send(pybind11::args xs) {
...
@@ -469,7 +471,7 @@ void py_send(pybind11::args xs) {
s_context
->
self
->
send
(
dest
,
mb
.
move_to_message
());
s_context
->
self
->
send
(
dest
,
mb
.
move_to_message
());
}
}
pybind11
::
tuple
tuple_from_message
(
message
msg
)
{
pybind11
::
tuple
tuple_from_message
(
const
type_erased_tuple
&
msg
)
{
auto
&
self
=
s_context
->
self
;
auto
&
self
=
s_context
->
self
;
auto
&
bindings
=
s_context
->
cfg
.
portable_bindings
();
auto
&
bindings
=
s_context
->
cfg
.
portable_bindings
();
pybind11
::
tuple
result
(
msg
.
size
());
pybind11
::
tuple
result
(
msg
.
size
());
...
@@ -500,7 +502,7 @@ pybind11::tuple py_dequeue() {
...
@@ -500,7 +502,7 @@ pybind11::tuple py_dequeue() {
self
->
await_data
();
self
->
await_data
();
ptr
=
self
->
next_message
();
ptr
=
self
->
next_message
();
}
}
return
tuple_from_message
(
std
::
move
(
ptr
->
msg
));
return
tuple_from_message
(
std
::
move
(
ptr
->
content
()
));
}
}
pybind11
::
tuple
py_dequeue_with_timeout
(
absolute_receive_timeout
timeout
)
{
pybind11
::
tuple
py_dequeue_with_timeout
(
absolute_receive_timeout
timeout
)
{
...
@@ -511,7 +513,7 @@ pybind11::tuple py_dequeue_with_timeout(absolute_receive_timeout timeout) {
...
@@ -511,7 +513,7 @@ pybind11::tuple py_dequeue_with_timeout(absolute_receive_timeout timeout) {
return
pybind11
::
none
{};
return
pybind11
::
none
{};
ptr
=
self
->
next_message
();
ptr
=
self
->
next_message
();
}
}
return
tuple_from_message
(
std
::
move
(
ptr
->
msg
));
return
tuple_from_message
(
std
::
move
(
ptr
->
content
()
));
}
}
actor
py_self
()
{
actor
py_self
()
{
...
...
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