search for: ___shrink_lock_arrays

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

2014 May 29
2
[PATCH] library: per-handle locking support
...s-internal.h" +#include "guestfs-internal-actions.h" +#include "guestfs_protocol.h" + +#include "locking.h" + +static gl_lock_t guestfs___lookup_lock_or_abort (guestfs_h *g, int *pos); +static void guestfs___per_handle_lock_is_not_held (guestfs_h *g); +static void ___shrink_lock_arrays (void); + + +gl_lock_define (static, *per_handle_locks) +gl_rwlock_define_initialized (static, locks_lock) + +/* items in handles array bijectively corresponds to items in per_handle_locks + */ +static guestfs_h ** handles; +static size_t n_handles; + + +static gl_lock_t +guestfs___lookup_lock_or_a...