mongo::CodeBlock Class Reference

#include <race.h>

List of all members.

Classes

class  Within

Public Member Functions

void assertWithin ()

Detailed Description

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.


Member Function Documentation

void mongo::CodeBlock::assertWithin (  )  [inline]

Definition at line 67 of file race.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:54 2013