diff options
author | Dan Vrátil <dvratil@redhat.com> | 2015-05-15 16:00:32 +0200 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2015-05-15 16:22:28 +0200 |
commit | 5b78e0da1d64b6096829f54b29f14ec5643b5ece (patch) | |
tree | 2091795596f9721bc1d9d8cb9965103d5a32df7a /async/src/async_impl.h | |
parent | 3bbee6c42683db5f85b01e4eb6dab8135e199f6c (diff) | |
download | sink-5b78e0da1d64b6096829f54b29f14ec5643b5ece.tar.gz sink-5b78e0da1d64b6096829f54b29f14ec5643b5ece.zip |
Async: rename Async namespace to KAsync
Diffstat (limited to 'async/src/async_impl.h')
-rw-r--r-- | async/src/async_impl.h | 20 |
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 | ||
24 | namespace Async { | 24 | namespace KAsync { |
25 | 25 | ||
26 | namespace detail { | 26 | namespace detail { |
27 | 27 | ||
@@ -48,34 +48,34 @@ struct prevOut { | |||
48 | 48 | ||
49 | template<typename T> | 49 | template<typename T> |
50 | inline typename std::enable_if<!std::is_void<T>::value, void>::type | 50 | inline typename std::enable_if<!std::is_void<T>::value, void>::type |
51 | copyFutureValue(const Async::Future<T> &in, Async::Future<T> &out) | 51 | copyFutureValue(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 | ||
56 | template<typename T> | 56 | template<typename T> |
57 | inline typename std::enable_if<std::is_void<T>::value, void>::type | 57 | inline typename std::enable_if<std::is_void<T>::value, void>::type |
58 | copyFutureValue(const Async::Future<T> &in, Async::Future<T> &out) | 58 | copyFutureValue(const KAsync::Future<T> &in, KAsync::Future<T> &out) |
59 | { | 59 | { |
60 | // noop | 60 | // noop |
61 | } | 61 | } |
62 | 62 | ||
63 | template<typename T> | 63 | template<typename T> |
64 | inline typename std::enable_if<!std::is_void<T>::value, void>::type | 64 | inline typename std::enable_if<!std::is_void<T>::value, void>::type |
65 | aggregateFutureValue(const Async::Future<T> &in, Async::Future<T> &out) | 65 | aggregateFutureValue(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 | ||
70 | template<typename T> | 70 | template<typename T> |
71 | inline typename std::enable_if<std::is_void<T>::value, void>::type | 71 | inline typename std::enable_if<std::is_void<T>::value, void>::type |
72 | aggregateFutureValue(const Async::Future<T> &in, Async::Future<T> &out) | 72 | aggregateFutureValue(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 |