From 961dd414defd0a3bfc3e68561b223cfd56c37906 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 1 Jul 2011 19:05:54 +0000 Subject: [PATCH] Ensure that a thread can indeed be joined. This doesn't always appear to be the case, and a friendly assertion is better than a hard exception that is thrown from the OS and doesn't contain much information. git-svn-id: https://svn.dealii.org/trunk@23912 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/thread_management.h | 1 + 1 file changed, 1 insertion(+) diff --git a/deal.II/include/deal.II/base/thread_management.h b/deal.II/include/deal.II/base/thread_management.h index 4fe93b8e6f..2b8fc82093 100644 --- a/deal.II/include/deal.II/base/thread_management.h +++ b/deal.II/include/deal.II/base/thread_management.h @@ -1339,6 +1339,7 @@ namespace Threads */ void join () { + Assert (thread.joinable(), ExcInternalError()); thread.join (); } -- 2.39.5