|
Yate
|
Script context serialization mutex. More...
#include <yatescript.h>
Public Member Functions | |
| ScriptMutex (bool recursive, const char *name) | |
| virtual void | objCreated (GenObject *obj)=0 |
| virtual void | objDeleted (GenObject *obj)=0 |
| bool | objTrack () const |
Public Member Functions inherited from Mutex | |
| Mutex (bool recursive=false, const char *name=0) | |
| Mutex (const Mutex &original) | |
| ~Mutex () | |
| Mutex & | operator= (const Mutex &original) |
| virtual bool | lock (long maxwait=-1) |
| virtual bool | unlock () |
| virtual bool | locked () const |
| const char * | owner () const |
| bool | recursive () const |
Public Member Functions inherited from Lockable | |
| virtual | ~Lockable () |
| virtual bool | check (long maxwait=-1) |
| virtual bool | unlockAll () |
Protected Attributes | |
| bool | m_objTrack |
Additional Inherited Members | |
Static Public Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Script context serialization mutex.
A mutex that serializes object access
|
inline |
Constructor
| recursive | True if the mutex has to be recursive (reentrant), false for a normal fast mutex |
| name | Static name of the mutex (for debugging purpose only) |
References Mutex::Mutex(), and Mutex::recursive().
|
pure virtual |
Notification that an object was created in context serialized by this mutex
| obj | Created object |
Implemented in ScriptRun.
|
pure virtual |
Notification that an object was destroyed in context serialized by this mutex
| obj | Destroyed object |
Implemented in ScriptRun.
|
inline |
Check if object tracking is active