API FOR ADVANCED USERS – This class is used with multithreaded applications. It lets you lock an object once within a thread. More...
#include <ilserver/model.h>
Public Member Functions | |
IlsBoolean | lock () |
Locks the object. More... | |
IlsBoolean | trylock () |
Tries to lock the object. More... | |
IlsBoolean | unlock () |
Unlocks the object. More... | |
![]() | |
virtual | ~IlsObject () |
Virtual destructor. | |
virtual void | cut (ILS_CUT_DIRECTIVE=ILS_ALL) |
Cuts all relations of which the object is the target. More... | |
virtual IlsEntity * | getEntity () |
Returns a pointer to the entity that owns the object transitively. | |
IlsBoolean | isInserted () |
Indicates whether the object is owned or not. | |
IlsBoolean | remove () |
Cuts the object and always returns IlsTrue . More... | |
virtual IlsBoolean | isUpdateAllowed () |
By default, this virtual member function checks whether the object is the target of an ownership relation. More... | |
IlsBoolean | isOwnerModified () |
During a notification phase, this member function returns IlsTrue if the owner of the object has changed since the last notification phase. | |
IlsBoolean | areUsersModified () |
During a notification phase, this member function returns IlsTrue if a use relation has been added or removed since the last notification phase. | |
API FOR ADVANCED USERS – This class is used with multithreaded applications. It lets you lock an object once within a thread.
Library: server
This type of lock is riskier than the type of lock defined using IlsSafelyLockableObject
but offers better performance.
IlsSafelyLockableObject
, IlsThread
.
|
virtual |
Locks the object.
If the object is locked by another thread, it waits until the lock can be taken. It returns IlsFalse
if the operation fails.
An object cannot be locked several times by the same thread.
Reimplemented from IlsObject.
|
virtual |
|
virtual |
Unlocks the object.
An object can be unlocked:
This function returns IlsFalse
if an error occurs.
Reimplemented from IlsObject.
© Copyright 2017, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.