tnt::ApplicationUnlocker Class Reference

Unlocks the application (and session) as long as the object is in scope. More...

#include <tnt/applicationunlocker.h>

Public Member Functions

 ApplicationUnlocker (HttpRequest &request_, bool release=true)
 ~ApplicationUnlocker ()
void unlock ()
void lock ()

Detailed Description

Unlocks the application (and session) as long as the object is in scope.

Normally the application is locked as soon as a request uses somewhere a application variable. Sometimes it is desirable to explicitely release that lock, e.g. when a request has some longer task to do.

Constructor & Destructor Documentation

tnt::ApplicationUnlocker::ApplicationUnlocker ( HttpRequest request_,
bool  release = true 
)
inlineexplicit
tnt::ApplicationUnlocker::~ApplicationUnlocker ( )
inline

Member Function Documentation

void tnt::ApplicationUnlocker::lock ( )
inline
void tnt::ApplicationUnlocker::unlock ( )
inline

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