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
38f44ae0
Commit
38f44ae0
authored
Dec 14, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete code / comments
parent
7f988bf5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
47 deletions
+2
-47
libcaf_core/caf/flow/coordinator.hpp
libcaf_core/caf/flow/coordinator.hpp
+1
-28
libcaf_core/caf/flow/fwd.hpp
libcaf_core/caf/flow/fwd.hpp
+1
-0
libcaf_core/src/flow/coordinator.cpp
libcaf_core/src/flow/coordinator.cpp
+0
-19
No files found.
libcaf_core/caf/flow/coordinator.hpp
View file @
38f44ae0
...
...
@@ -20,38 +20,11 @@ namespace caf::flow {
/// objects since the coordinator guarantees synchronous execution.
class
CAF_CORE_EXPORT
coordinator
{
public:
// class CAF_CORE_EXPORT subscription_impl : public subscription::impl {
// public:
// friend class coordinator;
// subscription_impl(coordinator* ctx, observable_base_ptr src,
// observer_base_ptr snk)
// : ctx_(ctx), src_(std::move(src)), snk_(std::move(snk)) {
// // nop
// }
// void request(size_t n) final;
// void cancel() final;
// bool disposed() const noexcept final;
// auto* ctx() const noexcept {
// return ctx_;
// }
// private:
// coordinator* ctx_;
// observable_base_ptr src_;
// observer_base_ptr snk_;
// };
// using subscription_impl_ptr = intrusive_ptr<subscription_impl>;
friend
class
subscription_impl
;
virtual
~
coordinator
();
/// Returns a factory object for new observable objects on this coordinator.
[[
nodiscard
]]
observable_builder
make_observable
();
/// Increases the reference count of the coordinator.
...
...
libcaf_core/caf/flow/fwd.hpp
View file @
38f44ae0
...
...
@@ -10,6 +10,7 @@
namespace
caf
::
detail
{
/// Always evaluates to `Left`.
template
<
class
Left
,
class
Right
>
struct
left_oracle
{
using
type
=
Left
;
...
...
libcaf_core/src/flow/coordinator.cpp
View file @
38f44ae0
...
...
@@ -17,23 +17,4 @@ observable_builder coordinator::make_observable() {
return
observable_builder
{
this
};
}
// void coordinator::subscription_impl::request(size_t n) {
// CAF_ASSERT(n != 0);
// if (src_) {
// ctx_->dispatch_request(src_.get(), snk_.get(), n);
// }
// }
//
// void coordinator::subscription_impl::cancel() {
// if (src_) {
// ctx_->dispatch_cancel(src_.get(), snk_.get());
// src_.reset();
// snk_.reset();
// }
// }
//
// bool coordinator::subscription_impl::disposed() const noexcept {
// return src_ == nullptr;
// }
}
// namespace caf::flow
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