search for: guestfs__per_handle_lock_unlock

Displaying 1 result from an estimated 1 matches for "guestfs__per_handle_lock_unlock".

2014 May 29
2
[PATCH] library: per-handle locking support
Introduces private pool of muteces (per_handle_locks) guarded by read-write mutex (locks_lock) using guestfs__per_handle_lock_lock(g) and guestfs__per_handle_lock_unlock(g), where g is current valid guestfs_h handle. Above two are used in generator/c.ml at begin and end of each non-deamon call. New lock can be created using guestfs__per_handle_lock_add(g) and destroyed with guestfs__per_handle_lock_remove(g). These two are called automatically too. First one is ca...