Claim
Object Hierarchy:
Bump.Claim
Bump.Claim
Bump.Claim
GLib.Object
GLib.Object
GLib.Object->Bump.Claim
GLib.Initable
GLib.Initable
GLib.Initable->Bump.Claim
GLib.AsyncInitable
GLib.AsyncInitable
GLib.AsyncInitable->Bump.Claim
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
Content:
Properties:
public bool active { get ; }
Whether the claim is active
public TimeSpan duration_held { get ; }
The length of time this claim has been held
public int64 time_acquired { get ; }
The time (monotonic) at which the lock was acquired
public int64 time_released { get ; }
The time (monotonic) at which the lock was released
Creation methods:
Methods:
public virtual bool init (Cancellable ? cancellable = null ) throws Error
public virtual async bool init_async (int io_priority = DEFAULT , Cancellable ? cancellable = null ) throws Error
public virtual void release ()
Release the lock
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.Initable
All known members inherited from interface GLib.AsyncInitable