From: bangerth Date: Fri, 1 Jul 2011 19:05:54 +0000 (+0000) Subject: Ensure that a thread can indeed be joined. This doesn't always appear X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961dd414defd0a3bfc3e68561b223cfd56c37906;p=dealii-svn.git 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 --- 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 (); }