search for: guestfs__per_handle_lock_add

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

2014 May 29
2
[PATCH] library: per-handle locking support
...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 called by guestfs_create and second by guestfs_destroy. --- generator/c.ml | 10 ++++ src/Makefile.am | 1 + src/handle.c | 4 ++ src/locking.c | 162 ++++++++++++++++++++++++++...