Claim
Object Hierarchy:
Description:
public class Claim : Object
, Initable
, AsyncInitable
Claim on a rivalrous resource
This API allows for easy interoperability with exceptions without forcing the use of callbacks, as the lock will be released
automatically when this class is destroyed.
See also:
Semaphore.claim,
ResourcePool.claim
Namespace: Bump
Package: bump-0.1
Content:
Properties:
- public
bool
active { get; }
Whether the claim is active
- public
int64
time_acquired { set; get; }
The time (monotonic) at which the lock was acquired
- public
int64
time_released { set; get; }
The time (monotonic) at which the lock was released
- public
TimeSpan
duration_held { get; }
The length of time this claim has been held
Creation methods:
Methods:
- public virtual void release ()
Release the lock
- public virtual
bool
init (Cancellable
? cancellable = null) throws Error
- public virtual async
bool
init_async (int
io_priority = DEFAULT
, Cancellable
? cancellable = null) throws Error