summaryrefslogtreecommitdiffhomepage
path: root/compat/run-in-thread.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 12:28:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 12:34:58 +0100
commit364c1ecd8703dadaaa9c7479335e469b153a1be0 (patch)
treea2ba1f508c5007857d865cc06bb696de0e398038 /compat/run-in-thread.hpp
parent11ef6b48676c52a42a81f1f5ee021cb37e728800 (diff)
compat: split/cleanup util.hpp
Some of the headers are clearly useless. Remove them. Move what's inside util.hpp into separate headers. Adjust usages. Will remove util.hpp.
Diffstat (limited to 'compat/run-in-thread.hpp')
-rw-r--r--compat/run-in-thread.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/run-in-thread.hpp b/compat/run-in-thread.hpp
index 67f4b1f5..c2243fc3 100644
--- a/compat/run-in-thread.hpp
+++ b/compat/run-in-thread.hpp
@@ -7,7 +7,7 @@
* copyright notice and this permission notice appear in all copies.
*/
-#include "ndebug-guard.hpp"
+#include "macros.hpp"
#include <cassert>
#include <thread>
@@ -53,7 +53,8 @@ struct run_in_thread_traits<void>
}
template<typename F>
-auto run_in_thread_sync(QObject* obj, F&& fun)
+auto never_inline
+run_in_thread_sync(QObject* obj, F&& fun)
-> typename qt_impl_detail::run_in_thread_traits<decltype(std::forward<F>(fun)())>::ret_type
{
using lock_guard = std::unique_lock<std::mutex>;