Cooperating application programs can use locks to implement exclusive access to a map within a persistence store.
More...
Cooperating application programs can use locks to implement exclusive access to a map within a persistence store.
To create a lock object, see tibRealm_CreateLock.
If a client process exits or disconnects from the persistence server, the library automatically releases all the locks that the process holds.
This file defines the calls that manipulate locks. In addition, map objects and map iterator objects have methods that operate while holding a lock.
#define TIBLOCK_PROPERTY_DOUBLE_LOCK_ACQUIRE_RETRY_DURATION "com.tibco.ftl.lock.acquire.retry.duration" |
Retry duration for lock requests. double.
Supply this property to tibRealm_CreateLock.
This determines the number of seconds the client will attempt to acquire the lock. The client may retry if it can't access the persistence server, or wait if another client owns the lock. If the client does not already own the lock, the client attempts to acquire it when any map operation requiring a lock is called.
This value must be positive or zero. A value of 0 (zero) specifies no wait duration.