Gnash
0.8.10
|
Public Member Functions | |
ScopedLock (const UserDefinedGetterSetter &na) | |
~ScopedLock () | |
bool | obtainedLock () const |
Return true if the lock was obtained. |
For SWF6 (not higher) a user-defined getter-setter would not be invoked while being set. This ScopedLock helps marking a Getter-Setter as being invoked in an exception-safe manner. Note this is not thread safe and does not attempt to provide thread safety.
gnash::GetterSetter::UserDefinedGetterSetter::ScopedLock::ScopedLock | ( | const UserDefinedGetterSetter & | na | ) | [inline, explicit] |
gnash::GetterSetter::UserDefinedGetterSetter::ScopedLock::~ScopedLock | ( | ) | [inline] |
bool gnash::GetterSetter::UserDefinedGetterSetter::ScopedLock::obtainedLock | ( | ) | const [inline] |
Return true if the lock was obtained.
If false is returned, we're being called recursively, which means we should set the underlyingValue instead of calling the setter (for SWF6, again).
Referenced by gnash::GetterSetter::UserDefinedGetterSetter::get(), and gnash::GetterSetter::UserDefinedGetterSetter::set().