include/vcl/threadex.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+)
New commits: commit d34c0852d73b1b02115cc6c469106fabd057dbb7 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Feb 27 09:44:37 2019 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Feb 27 11:53:29 2019 +0100 Fix GenericSolarThreadExecutor<...,void> specialization Change-Id: I4468a3a8d036ca4894ba7977f6654244552464aa Reviewed-on: https://gerrit.libreoffice.org/68423 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx index cac25bc58b75..cd511f271d2c 100644 --- a/include/vcl/threadex.hxx +++ b/include/vcl/threadex.hxx @@ -92,6 +92,16 @@ private: template <typename FuncT> class GenericSolarThreadExecutor<FuncT, void> : public SolarThreadExecutor { +public: + static void exec( FuncT const& func ) + { + typedef GenericSolarThreadExecutor<FuncT, void> ExecutorT; + ::std::unique_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); + pExecutor->execute(); + if (pExecutor->m_exc) + std::rethrow_exception(pExecutor->m_exc); + } + private: explicit GenericSolarThreadExecutor( FuncT const& func ) : m_func(func) {} _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits