#include <race.h>
Classes | |
class | Within |
Public Member Functions | |
void | assertWithin () |
some self-testing of synchronization and attempts to catch race conditions.
use something like:
CodeBlock myBlock;
void foo() { CodeBlock::Within w(myBlock); ... }
In _DEBUG builds, will (sometimes/maybe) fail if two threads are in the same code block at the same time. Also detects and disallows recursion.
Definition at line 61 of file race.h.