@@ -397,9 +397,7 @@ struct casting_compare {
397397 do { \
398398 std::stringstream message_stream; \
399399 message_stream << msg << ' \n ' ; \
400- libMesh::Threads::lock_singleton_spin_mutex (); \
401400 libMesh::MacroFunctions::report_error (__FILE__, __LINE__, LIBMESH_DATE, LIBMESH_TIME, message_stream); \
402- libMesh::Threads::unlock_singleton_spin_mutex (); \
403401 LIBMESH_THROW (libMesh::LogicError (message_stream.str ())); \
404402 } while (0 )
405403
@@ -415,9 +413,9 @@ struct casting_compare {
415413 do { \
416414 libMesh::Threads::lock_singleton_spin_mutex (); \
417415 libMesh::err << msg << ' \n ' ; \
416+ libMesh::Threads::unlock_singleton_spin_mutex (); \
418417 libmesh_try { libMesh::MacroFunctions::report_error (__FILE__, __LINE__, LIBMESH_DATE, LIBMESH_TIME); } \
419418 libmesh_catch (...) {} \
420- libMesh::Threads::unlock_singleton_spin_mutex (); \
421419 std::terminate (); \
422420 } while (0 )
423421
@@ -427,9 +425,7 @@ struct casting_compare {
427425 do { \
428426 std::stringstream message_stream; \
429427 message_stream << msg << ' \n ' ; \
430- libMesh::Threads::lock_singleton_spin_mutex (); \
431428 libMesh::MacroFunctions::report_error (__FILE__, __LINE__, LIBMESH_DATE, LIBMESH_TIME, message_stream); \
432- libMesh::Threads::unlock_singleton_spin_mutex (); \
433429 LIBMESH_THROW (libMesh::NotImplemented (message_stream.str ())); \
434430 } while (0 )
435431
@@ -439,9 +435,7 @@ struct casting_compare {
439435 do { \
440436 std::stringstream message_stream; \
441437 message_stream << msg << ' \n ' ; \
442- libMesh::Threads::lock_singleton_spin_mutex (); \
443438 libMesh::MacroFunctions::report_error (__FILE__, __LINE__, LIBMESH_DATE, LIBMESH_TIME, message_stream); \
444- libMesh::Threads::unlock_singleton_spin_mutex (); \
445439 LIBMESH_THROW (libMesh::FileError (filename, message_stream.str ())); \
446440 } while (0 )
447441
0 commit comments