Sirikata
Classes | Public Member Functions
Sirikata::SerializationCheck Class Reference

Verifies that code blocks you expect to be handled in a serialized fashion (i.e. More...

#include <SerializationCheck.hpp>

Inheritance diagram for Sirikata::SerializationCheck:

List of all members.

Classes

class  Scoped

Public Member Functions

 SerializationCheck ()
void serializedEnter () const
void serializedExit () const

Detailed Description

Verifies that code blocks you expect to be handled in a serialized fashion (i.e.

non-concurrently) are actually handled that way. Mark these sections with calls to serializedEnter() and serializedExit() at the beinning and end respectively and those calls will assert in debug mode if this condition is violated. This can be used recursively within a thread -- multiple calls to serializedEnter() from the same thread will not result in an error.


Constructor & Destructor Documentation

Sirikata::SerializationCheck::SerializationCheck ( ) [inline]

Member Function Documentation

void Sirikata::SerializationCheck::serializedEnter ( ) const [inline]
void Sirikata::SerializationCheck::serializedExit ( ) const [inline]

The documentation for this class was generated from the following file: