NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QuotaGuard< T > Class Template Reference

Optimize the request of different resources and the rollback if one failes. More...

#include <generic_service.h>

Public Member Functions

 QuotaGuard (Utcb &utcb, unsigned pseudonym, const char *name, long value_in, QuotaGuard *prev=0)
 ~QuotaGuard ()
void commit ()
unsigned status ()

Private Attributes

Utcb_utcb
unsigned _pseudonym
const char * _name
long _value_in
QuotaGuard_prev
unsigned _res

Detailed Description

template<class T>
class QuotaGuard< T >

Optimize the request of different resources and the rollback if one failes.

Constructor & Destructor Documentation

template<class T >
QuotaGuard< T >::QuotaGuard ( Utcb utcb,
unsigned  pseudonym,
const char *  name,
long  value_in,
QuotaGuard< T > *  prev = 0 
)
inline
template<class T >
QuotaGuard< T >::~QuotaGuard ( )
inline

Member Function Documentation

template<class T >
void QuotaGuard< T >::commit ( )
inline
template<class T >
unsigned QuotaGuard< T >::status ( )
inline

Member Data Documentation

template<class T >
const char* QuotaGuard< T >::_name
private
template<class T >
QuotaGuard* QuotaGuard< T >::_prev
private
template<class T >
unsigned QuotaGuard< T >::_pseudonym
private
template<class T >
unsigned QuotaGuard< T >::_res
private
template<class T >
Utcb& QuotaGuard< T >::_utcb
private
template<class T >
long QuotaGuard< T >::_value_in
private

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