Sirikata
|
Verifies that code blocks you expect to be handled in a serialized fashion (i.e. More...
#include <SerializationCheck.hpp>
Classes | |
class | Scoped |
Public Member Functions | |
SerializationCheck () | |
void | serializedEnter () const |
void | serializedExit () const |
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.
Sirikata::SerializationCheck::SerializationCheck | ( | ) | [inline] |
void Sirikata::SerializationCheck::serializedEnter | ( | ) | const [inline] |
void Sirikata::SerializationCheck::serializedExit | ( | ) | const [inline] |