Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
code
pfabric
Commits
352b44a0
Commit
352b44a0
authored
Aug 30, 2019
by
Philipp Götze
Browse files
Calling future's get instead of wait to forward exceptions
parent
e8ea0592
Pipeline
#188
canceled with stages
in 2 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dsl/Topology.cpp
View file @
352b44a0
...
...
@@ -78,7 +78,7 @@ void Topology::wait(const std::chrono::milliseconds &dur) {
std
::
lock_guard
<
std
::
mutex
>
guard
(
mMutex
);
// let's wait until the function finished
for
(
auto
&
f
:
startupFutures
)
f
.
wai
t
();
f
.
ge
t
();
//TODO: wait for EndOfStream Punctuations on all sinks
//TODO: what about merging streams or no actual sinks?
std
::
unique_lock
<
std
::
mutex
>
lk
(
mCv_m
);
...
...
src/dsl/Topology.hpp
View file @
352b44a0
...
...
@@ -17,6 +17,7 @@
* along with PipeFabric. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef Topology_hpp_
#define Topology_hpp_
...
...
Write
Preview
Supports
Markdown
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