Hello,
Suppose that I have a shared variable that is always updates when a
mutex is held and is sometimes read without holding the mutex. The
read race is fine for my application. However, I want to use helgrind
to check for other races.
If I disable/enable checking around the lock free read, th
On Fri, 2015-08-07 at 10:36 -0400, Rich Prohaska wrote:
> Hello,
>
> I have observed that helgrind will report erroneous data races on a
> variable if checking on that variable is disable and enabled by a
> concurrent thread. Can someone explain what is going on?
VALGRIND_HG_ENABLE_CHECKING imple
Hello,
I have observed that helgrind will report erroneous data races on a
variable if checking on that variable is disable and enabled by a
concurrent thread. Can someone explain what is going on?
Please see attached example program.
Thanks
Rich Prohaska
hg-rw-race.cc
Description: Binary dat
Hello,
I dont understand why helgrind sometimes reports a data race for the
attached program. One thread writes a variable while holding a mutex. The
other thread disables and enables checks on the same variable.
Thanks
Rich Prohaska
hg-rw-race.cc
Description: Binary data