Public Member Functions

sp::CriticalSection Class Reference

#include <spCriticalSection.hpp>

List of all members.

Public Member Functions

 CriticalSection ()
 ~CriticalSection ()
void lock ()
void unlock ()
 Unlocks the section.

Detailed Description

Critical section class used for multi-threading. This class is particular used in the "SecureList" class to have a thread safe variant of the std::list container.

Constructor & Destructor Documentation

sp::CriticalSection::CriticalSection (  ) 
sp::CriticalSection::~CriticalSection (  ) 

Member Function Documentation

void sp::CriticalSection::lock (  ) 

Locks the critical section. Before this function waits until its unlocked (not used by another thread). Don't forget to unlock the section.

void sp::CriticalSection::unlock (  ) 

Unlocks the section.

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