Synchronize access to static variable call_count (#20259)
authorJonathan Marler <johnnymarler@gmail.com>
Fri, 5 Oct 2018 01:08:22 +0000 (19:08 -0600)
committerJan Vorlicek <janvorli@microsoft.com>
Fri, 5 Oct 2018 01:08:22 +0000 (03:08 +0200)
commit7f59d17e2741e69bf878b8b168828de3a0a3d12e
treea201c6f5783035d3a0cb8b06a2f8f6ed0f48293f
parent957eceed83cf635fc3146eadc448bf50efde5431
Synchronize access to static variable call_count (#20259)

call_count is a static variable that is being read/modified and written to without any synchronization. Fortunately, a critical section is already available that can be leveraged to synchronize access to it.
src/pal/src/misc/dbgmsg.cpp