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
5710a386
Commit
5710a386
authored
Dec 16, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove calls to deprecated `cppa::cow_tuple` API
parent
c5d18064
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
examples/curl/curl_fuse.cpp
examples/curl/curl_fuse.cpp
+2
-2
unit_testing/test_fixed_stack_actor.cpp
unit_testing/test_fixed_stack_actor.cpp
+3
-2
unit_testing/test_spawn.cpp
unit_testing/test_spawn.cpp
+1
-1
No files found.
examples/curl/curl_fuse.cpp
View file @
5710a386
...
...
@@ -222,7 +222,7 @@ class curl_worker : public base_actor {
return
(
on
(
atom
(
"read"
),
arg_match
)
>>
[
=
](
const
std
::
string
&
fname
,
uint64_t
offset
,
uint64_t
range
)
->
cow_tuple
<
atom_value
,
buffer_type
>
{
->
message
{
print
()
<<
"read"
<<
color
::
reset_endl
;
for
(;;)
{
m_buf
.
clear
();
...
...
@@ -260,7 +260,7 @@ class curl_worker : public base_actor {
<<
color
::
reset_endl
;
// tell parent that this worker is done
send
(
m_parent
,
atom
(
"finished"
));
return
make_
cow_tupl
e
(
atom
(
"reply"
),
m_buf
);
return
make_
messag
e
(
atom
(
"reply"
),
m_buf
);
case
404
:
// file does not exist
print
()
<<
"http error: download failed with "
<<
"'HTTP RETURN CODE': 404 (file does "
...
...
unit_testing/test_fixed_stack_actor.cpp
View file @
5710a386
#include <tuple>
#include <vector>
#include "test.hpp"
...
...
@@ -12,7 +13,7 @@ class fixed_stack : public sb_actor<fixed_stack> {
fixed_stack
(
size_t
max
)
:
max_size
(
max
)
{
full
=
(
on
(
atom
(
"push"
),
arg_match
)
>>
[
=
](
int
)
{
/* discard */
},
on
(
atom
(
"pop"
))
>>
[
=
]()
->
cow_
tuple
<
atom_value
,
int
>
{
on
(
atom
(
"pop"
))
>>
[
=
]()
->
std
::
tuple
<
atom_value
,
int
>
{
auto
result
=
data
.
back
();
data
.
pop_back
();
become
(
filled
);
...
...
@@ -24,7 +25,7 @@ class fixed_stack : public sb_actor<fixed_stack> {
data
.
push_back
(
what
);
if
(
data
.
size
()
==
max_size
)
become
(
full
);
},
on
(
atom
(
"pop"
))
>>
[
=
]()
->
cow_
tuple
<
atom_value
,
int
>
{
on
(
atom
(
"pop"
))
>>
[
=
]()
->
std
::
tuple
<
atom_value
,
int
>
{
auto
result
=
data
.
back
();
data
.
pop_back
();
if
(
data
.
empty
())
become
(
empty
);
...
...
unit_testing/test_spawn.cpp
View file @
5710a386
...
...
@@ -504,7 +504,7 @@ void test_spawn() {
auto
f
=
[](
const
string
&
name
)
->
behavior
{
return
(
on
(
atom
(
"get_name"
))
>>
[
name
]
{
return
make_
cow_tupl
e
(
atom
(
"name"
),
name
);
return
make_
messag
e
(
atom
(
"name"
),
name
);
}
);
};
...
...
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