Zero  0.1.0
Public Member Functions | List of all members
critical_section< Lock *& > Struct Template Reference

Helper class for CRITICAL_SECTION idiom (macro). More...

#include <critical_section.h>

Inheritance diagram for critical_section< Lock *& >:
critical_section< Lock &>

Public Member Functions

 critical_section (Lock *mutex)
 

Detailed Description

template<class Lock>
struct critical_section< Lock *& >

Helper class for CRITICAL_SECTION idiom (macro).

This templated class does nothing; its various specializations do the work of acquiring the given lock upon construction and releasing it upon destruction. See the macros:

Constructor & Destructor Documentation

§ critical_section()

template<class Lock >
critical_section< Lock *& >::critical_section ( Lock *  mutex)
inline

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