From: Wolfgang 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-Tag: v8.0.0~3853 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fb6a6772a996234da24f8509ad7ce7351360511;p=dealii.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 (); }