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
67bc5c0b
Commit
67bc5c0b
authored
Nov 15, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler errors on GCC/Clang
parent
fc6c187e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
libcaf_core/caf/duration.hpp
libcaf_core/caf/duration.hpp
+1
-1
libcaf_io/caf/io/middleman.hpp
libcaf_io/caf/io/middleman.hpp
+12
-3
No files found.
libcaf_core/caf/duration.hpp
View file @
67bc5c0b
...
@@ -105,7 +105,7 @@ public:
...
@@ -105,7 +105,7 @@ public:
/// @throws std::invalid_argument Thrown if `d.count() is negative.
/// @throws std::invalid_argument Thrown if `d.count() is negative.
template
<
class
Rep
,
class
Period
,
template
<
class
Rep
,
class
Period
,
class
E
=
class
E
=
std
::
enable_if
<
typename
std
::
enable_if
<
std
::
is_integral
<
Rep
>
::
value
std
::
is_integral
<
Rep
>
::
value
&&
get_time_unit_from_period
<
Period
>
()
!=
time_unit
::
invalid
&&
get_time_unit_from_period
<
Period
>
()
!=
time_unit
::
invalid
>::
type
>
>::
type
>
...
...
libcaf_io/caf/io/middleman.hpp
View file @
67bc5c0b
...
@@ -170,9 +170,9 @@ public:
...
@@ -170,9 +170,9 @@ public:
/// @experimental
/// @experimental
template
<
class
Handle
>
template
<
class
Handle
>
expected
<
Handle
>
remote_spawn
(
const
node_id
&
nid
,
std
::
string
name
,
expected
<
Handle
>
message
args
,
remote_spawn
(
const
node_id
&
nid
,
std
::
string
name
,
message
args
,
duration
timeout
=
std
::
chrono
::
seconds
(
60
))
{
duration
timeout
=
duration
(
time_unit
::
minutes
,
1
))
{
if
(
!
nid
||
name
.
empty
())
if
(
!
nid
||
name
.
empty
())
return
sec
::
invalid_argument
;
return
sec
::
invalid_argument
;
auto
res
=
remote_spawn_impl
(
nid
,
name
,
args
,
auto
res
=
remote_spawn_impl
(
nid
,
name
,
args
,
...
@@ -182,6 +182,15 @@ public:
...
@@ -182,6 +182,15 @@ public:
return
actor_cast
<
Handle
>
(
std
::
move
(
*
res
));
return
actor_cast
<
Handle
>
(
std
::
move
(
*
res
));
}
}
/// @experimental
template
<
class
Handle
,
class
Rep
,
class
Period
>
expected
<
Handle
>
remote_spawn
(
const
node_id
&
nid
,
std
::
string
name
,
message
args
,
std
::
chrono
::
duration
<
Rep
,
Period
>
timeout
)
{
return
remote_spawn
<
Handle
>
(
nid
,
std
::
move
(
name
),
std
::
move
(
args
),
duration
{
timeout
});
}
/// Smart pointer for `network::multiplexer`.
/// Smart pointer for `network::multiplexer`.
using
backend_pointer
=
std
::
unique_ptr
<
network
::
multiplexer
>
;
using
backend_pointer
=
std
::
unique_ptr
<
network
::
multiplexer
>
;
...
...
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