v / examples / thread_safety / readme.md
16 lines · 12 sloc · 489 bytes · 7a0febb12dad9fa4711bfcff68b71dfc0003dca1
Raw

Run

v -prod  -gc none -cc gcc ./queue.v && \
./queue

Valgrind

# Helgrind: a tool for detecting synchronisation errors in programs that use the POSIX pthreads threading primitives.
valgrind --tool=helgrind ./queue

# DRD: a tool for detecting errors in multithreaded programs. The tool works for any program that uses the POSIX threading primitives or that uses threading concepts built on top of the POSIX threading primitives. 
valgrind --tool=drd ./queue