aboutsummaryrefslogtreecommitdiff
path: root/include/AsyncTask.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/AsyncTask.hpp')
-rw-r--r--include/AsyncTask.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/AsyncTask.hpp b/include/AsyncTask.hpp
index e256dc7..358e06a 100644
--- a/include/AsyncTask.hpp
+++ b/include/AsyncTask.hpp
@@ -20,14 +20,14 @@ namespace QuickMedia {
thread = std::thread(&AsyncTask::thread_handler, this, std::move(promise), std::move(callback_func), std::forward<Args>(args)...);
}
- AsyncTask(AsyncTask &&other) {
+ AsyncTask(AsyncTask &&other) noexcept {
cancel();
std::lock_guard<std::mutex> lock(mutex);
thread = std::move(other.thread);
future = std::move(other.future);
}
- AsyncTask& operator=(AsyncTask &&other) {
+ AsyncTask& operator=(AsyncTask &&other) noexcept {
cancel();
std::lock_guard<std::mutex> lock(mutex);
thread = std::move(other.thread);