Skip to content

Commit

Permalink
Use CMS_THREAD_SAFE annotation in externalGenerator
Browse files Browse the repository at this point in the history
The application only ever uses one thread so the use of non-const
globals is safe.
  • Loading branch information
Dr15Jones committed May 5, 2022
1 parent 0581792 commit f2b9778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeneratorInterface/Core/bin/externalGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ using Serializer = ROOTSerializer<T, WriteBuffer>;

namespace {
//needed for atexit handling
boost::interprocess::scoped_lock<boost::interprocess::named_mutex>* s_sharedLock = nullptr;
CMS_THREAD_SAFE boost::interprocess::scoped_lock<boost::interprocess::named_mutex>* s_sharedLock = nullptr;

void atexit_handler() {
if (s_sharedLock) {
Expand Down

0 comments on commit f2b9778

Please sign in to comment.