summaryrefslogtreecommitdiffstats
path: root/async/src/async_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'async/src/async_impl.h')
-rw-r--r--async/src/async_impl.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/async/src/async_impl.h b/async/src/async_impl.h
index 8c74193..5b4e393 100644
--- a/async/src/async_impl.h
+++ b/async/src/async_impl.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright 2014 Daniel Vrátil <dvratil@redhat.com> 2 * Copyright 2014 - 2015 Daniel Vrátil <dvratil@redhat.com>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public License as 5 * modify it under the terms of the GNU Library General Public License as
@@ -15,13 +15,13 @@
15 * along with this library. If not, see <http://www.gnu.org/licenses/>. 15 * along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18#ifndef ASYNC_IMPL_H 18#ifndef KASYNC_IMPL_H
19#define ASYNC_IMPL_H 19#define KASYNC_IMPL_H
20 20
21#include "async.h" 21#include "async.h"
22#include <type_traits> 22#include <type_traits>
23 23
24namespace Async { 24namespace KAsync {
25 25
26namespace detail { 26namespace detail {
27 27
@@ -48,34 +48,34 @@ struct prevOut {
48 48
49template<typename T> 49template<typename T>
50inline typename std::enable_if<!std::is_void<T>::value, void>::type 50inline typename std::enable_if<!std::is_void<T>::value, void>::type
51copyFutureValue(const Async::Future<T> &in, Async::Future<T> &out) 51copyFutureValue(const KAsync::Future<T> &in, KAsync::Future<T> &out)
52{ 52{
53 out.setValue(in.value()); 53 out.setValue(in.value());
54} 54}
55 55
56template<typename T> 56template<typename T>
57inline typename std::enable_if<std::is_void<T>::value, void>::type 57inline typename std::enable_if<std::is_void<T>::value, void>::type
58copyFutureValue(const Async::Future<T> &in, Async::Future<T> &out) 58copyFutureValue(const KAsync::Future<T> &in, KAsync::Future<T> &out)
59{ 59{
60 // noop 60 // noop
61} 61}
62 62
63template<typename T> 63template<typename T>
64inline typename std::enable_if<!std::is_void<T>::value, void>::type 64inline typename std::enable_if<!std::is_void<T>::value, void>::type
65aggregateFutureValue(const Async::Future<T> &in, Async::Future<T> &out) 65aggregateFutureValue(const KAsync::Future<T> &in, KAsync::Future<T> &out)
66{ 66{
67 out.setValue(out.value() + in.value()); 67 out.setValue(out.value() + in.value());
68} 68}
69 69
70template<typename T> 70template<typename T>
71inline typename std::enable_if<std::is_void<T>::value, void>::type 71inline typename std::enable_if<std::is_void<T>::value, void>::type
72aggregateFutureValue(const Async::Future<T> &in, Async::Future<T> &out) 72aggregateFutureValue(const KAsync::Future<T> &in, KAsync::Future<T> &out)
73{ 73{
74 // noop 74 // noop
75} 75}
76 76
77} // namespace Detail 77} // namespace Detail
78 78
79} // namespace Async 79} // namespace KAsync
80 80
81#endif // ASYNC_IMPL_H 81#endif // KASYNC_IMPL_H