Gnash  0.8.10
Public Member Functions
gnash::GetterSetter::UserDefinedGetterSetter::ScopedLock Class Reference

List of all members.

Public Member Functions

 ScopedLock (const UserDefinedGetterSetter &na)
 ~ScopedLock ()
bool obtainedLock () const
 Return true if the lock was obtained.

Detailed Description

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.

Constructor & Destructor Documentation

gnash::GetterSetter::UserDefinedGetterSetter::ScopedLock::ScopedLock ( const UserDefinedGetterSetter na) [inline, explicit]
gnash::GetterSetter::UserDefinedGetterSetter::ScopedLock::~ScopedLock ( ) [inline]

Member Function Documentation

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().

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