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
349e1940
Commit
349e1940
authored
Sep 09, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Templatize default_invoke_result_visitor
parent
eaf70871
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
37 deletions
+8
-37
libcaf_core/CMakeLists.txt
libcaf_core/CMakeLists.txt
+0
-1
libcaf_core/caf/detail/default_invoke_result_visitor.hpp
libcaf_core/caf/detail/default_invoke_result_visitor.hpp
+6
-3
libcaf_core/src/blocking_actor.cpp
libcaf_core/src/blocking_actor.cpp
+1
-1
libcaf_core/src/default_invoke_result_visitor.cpp
libcaf_core/src/default_invoke_result_visitor.cpp
+0
-30
libcaf_core/src/local_actor.cpp
libcaf_core/src/local_actor.cpp
+0
-1
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+1
-1
No files found.
libcaf_core/CMakeLists.txt
View file @
349e1940
...
...
@@ -38,7 +38,6 @@ set (LIBCAF_CORE_SRCS
src/config_option.cpp
src/continue_helper.cpp
src/decorated_tuple.cpp
src/default_invoke_result_visitor.cpp
src/default_attachable.cpp
src/deserializer.cpp
src/duration.cpp
...
...
libcaf_core/caf/detail/default_invoke_result_visitor.hpp
View file @
349e1940
...
...
@@ -27,13 +27,16 @@
namespace
caf
{
namespace
detail
{
template
<
class
Self
>
class
default_invoke_result_visitor
:
public
invoke_result_visitor
{
public:
inline
default_invoke_result_visitor
(
local_actor
*
ptr
)
:
self_
(
ptr
)
{
inline
default_invoke_result_visitor
(
Self
*
ptr
)
:
self_
(
ptr
)
{
// nop
}
~
default_invoke_result_visitor
();
~
default_invoke_result_visitor
()
{
// nop
}
void
operator
()()
override
{
// nop
...
...
@@ -83,7 +86,7 @@ private:
deliver
(
rp
,
x
);
}
local_actor
*
self_
;
Self
*
self_
;
};
}
// namespace detail
...
...
libcaf_core/src/blocking_actor.cpp
View file @
349e1940
...
...
@@ -301,7 +301,7 @@ void blocking_actor::receive_impl(receive_cond& rcc,
cached_sequence
seq1
{
mailbox
().
cache
()};
mailbox_sequence
seq2
{
this
,
bhvr
.
timeout
()};
message_sequence_combinator
seq
{
&
seq1
,
&
seq2
};
detail
::
default_invoke_result_visitor
visitor
{
this
};
detail
::
default_invoke_result_visitor
<
blocking_actor
>
visitor
{
this
};
// read incoming messages until we have a match or a timeout
for
(;;)
{
// check loop pre-condition
...
...
libcaf_core/src/default_invoke_result_visitor.cpp
deleted
100644 → 0
View file @
eaf70871
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2016 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/detail/default_invoke_result_visitor.hpp"
namespace
caf
{
namespace
detail
{
default_invoke_result_visitor
::~
default_invoke_result_visitor
()
{
// nop
}
}
// namespace detail
}
// namespace caf
libcaf_core/src/local_actor.cpp
View file @
349e1940
...
...
@@ -36,7 +36,6 @@
#include "caf/detail/private_thread.hpp"
#include "caf/detail/sync_request_bouncer.hpp"
#include "caf/detail/default_invoke_result_visitor.hpp"
namespace
caf
{
...
...
libcaf_core/src/scheduled_actor.cpp
View file @
349e1940
...
...
@@ -422,7 +422,7 @@ invoke_message_result scheduled_actor::consume(mailbox_element& x) {
return
im_success
;
}
case
message_category
:
:
ordinary
:
{
detail
::
default_invoke_result_visitor
visitor
{
this
};
detail
::
default_invoke_result_visitor
<
scheduled_actor
>
visitor
{
this
};
bool
skipped
=
false
;
auto
had_timeout
=
getf
(
has_timeout_flag
);
if
(
had_timeout
)
...
...
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