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
641db02e
Commit
641db02e
authored
Feb 24, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make `congested` noexcept and implement it
parent
ca972736
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
libcaf_core/caf/detail/stream_stage_impl.hpp
libcaf_core/caf/detail/stream_stage_impl.hpp
+2
-3
libcaf_core/caf/stream_manager.hpp
libcaf_core/caf/stream_manager.hpp
+1
-1
libcaf_core/src/stream_manager.cpp
libcaf_core/src/stream_manager.cpp
+1
-1
No files found.
libcaf_core/caf/detail/stream_stage_impl.hpp
View file @
641db02e
...
@@ -89,9 +89,8 @@ public:
...
@@ -89,9 +89,8 @@ public:
return
make_message_from_tuple
(
driver_
.
make_handshake
(
slot
));
return
make_message_from_tuple
(
driver_
.
make_handshake
(
slot
));
}
}
bool
congested
()
const
override
{
bool
congested
()
const
noexcept
override
{
// TODO: implement me
return
out_
.
capacity
()
==
0
;
return
out_
.
buffered
()
>=
30
;
}
}
private:
private:
...
...
libcaf_core/caf/stream_manager.hpp
View file @
641db02e
...
@@ -94,7 +94,7 @@ public:
...
@@ -94,7 +94,7 @@ public:
/// Returns true if the handler is not able to process any further batches
/// Returns true if the handler is not able to process any further batches
/// since it is unable to make progress sending on its own.
/// since it is unable to make progress sending on its own.
virtual
bool
congested
()
const
;
virtual
bool
congested
()
const
noexcept
;
/// Sends a handshake to `dest`.
/// Sends a handshake to `dest`.
/// @pre `dest != nullptr`
/// @pre `dest != nullptr`
...
...
libcaf_core/src/stream_manager.cpp
View file @
641db02e
...
@@ -116,7 +116,7 @@ void stream_manager::push() {
...
@@ -116,7 +116,7 @@ void stream_manager::push() {
}
while
(
generate_messages
());
}
while
(
generate_messages
());
}
}
bool
stream_manager
::
congested
()
const
{
bool
stream_manager
::
congested
()
const
noexcept
{
return
false
;
return
false
;
}
}
...
...
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