Use mutex in ElapsedSeconds() to protect static variable.
Given C++'s rules for initialization of statics, I don't think this is strictly necessary, but it makes helgrind happy and causes no harm.
Showing
想要评论请 注册 或 登录
Given C++'s rules for initialization of statics, I don't think this is strictly necessary, but it makes helgrind happy and causes no harm.