#include <MboLockedVar.h>
Public Member Functions | |
LockedVar () | |
LockedVar (const _Ty tIn) | |
operator _Ty () | |
operator const _Ty () const | |
_Ty & | operator * () |
const _Ty & | operator * () const |
const _Ty & | operator= (const _Ty &tIn) |
_Ty | __exchange (const _Ty tIn) |
mbo::CLock | __getLock () const |
Protected Types | |
typedef bool | _Ty |
Protected Attributes | |
bool | m_val |
value |
Definition at line 166 of file MboLockedVar.h.
typedef bool mbo::LockedVar< bool >::_Ty [protected] |
Definition at line 177 of file MboLockedVar.h.
mbo::LockedVar< bool >::LockedVar | ( | ) | [inline] |
Default Constructor
Definition at line 185 of file MboLockedVar.h.
00186 : m_val(false) 00187 { 00188 }
mbo::LockedVar< bool >::LockedVar | ( | const _Ty | tIn | ) | [inline, explicit] |
Standard Constructor
tIn | initial value |
Definition at line 193 of file MboLockedVar.h.
00194 : m_val(tIn) 00195 { 00196 }
mbo::LockedVar< bool >::operator _Ty | ( | ) | [inline] |
access to locked value (a copy is returned)
Definition at line 203 of file MboLockedVar.h.
References mbo::LockedVar< _Ty, _THREAD_MODEL >::m_val.
00204 { 00205 return m_val; 00206 }
mbo::LockedVar< bool >::operator const _Ty | ( | ) | const [inline] |
const access to locked value (a const copy is returned)
Definition at line 213 of file MboLockedVar.h.
References mbo::LockedVar< _Ty, _THREAD_MODEL >::m_val.
00214 { 00215 return m_val; 00216 }
_Ty& mbo::LockedVar< bool >::operator * | ( | ) | [inline] |
Definition at line 220 of file MboLockedVar.h.
References mbo::LockedVar< _Ty, _THREAD_MODEL >::m_val.
00221 { 00222 return m_val; 00223 }
const _Ty& mbo::LockedVar< bool >::operator * | ( | ) | const [inline] |
Definition at line 227 of file MboLockedVar.h.
References mbo::LockedVar< _Ty, _THREAD_MODEL >::m_val.
00228 { 00229 return m_val; 00230 }
const _Ty& mbo::LockedVar< bool >::operator= | ( | const _Ty & | tIn | ) | [inline] |
assignment
tIn | new value |
Definition at line 238 of file MboLockedVar.h.
References mbo::LockedVar< _Ty, _THREAD_MODEL >::m_val.
00239 { 00240 m_val = tIn; 00241 return tIn; /* tIn not t */ 00242 }
_Ty mbo::LockedVar< bool >::__exchange | ( | const _Ty | tIn | ) | [inline] |
value exchangement
tIn | the new value |
Definition at line 249 of file MboLockedVar.h.
References mbo::LockedVar< _Ty, _THREAD_MODEL >::m_val.
mbo::CLock mbo::LockedVar< bool >::__getLock | ( | ) | const [inline] |
Definition at line 258 of file MboLockedVar.h.
00259 { 00260 return mbo::CLockSingle(&m_mx); 00261 }
bool mbo::LockedVar< bool >::m_val [protected] |
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by 1.5.4 |