Skip to content

Commit

Permalink
Marked debugging static as thread safe in KinematicConstrainedVertexu…
Browse files Browse the repository at this point in the history
…pdatorT

A static instance of a class which only has a std::atomic member data was being
falsely accused of being thread unsafe by the static analyzer. Given the rare
case this represents, it was easier to just mark the static as thread safe using
our C++11 attribute.
  • Loading branch information
Dr15Jones committed Jun 27, 2014
1 parent 4da854f commit 8a13bfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace KineDebug3 {

};
inline void count() {
static Count c;
[[cms::thread_safe]] static Count c;
++c.n;
}

Expand Down

0 comments on commit 8a13bfd

Please sign in to comment.