search for: gl_lock_destroy

Displaying 3 results from an estimated 3 matches for "gl_lock_destroy".

2020 Feb 05
1
[PATCH] properly initialize error_data_lock_list before use
...return NULL; gl_recursive_lock_init (g->lock); + gl_lock_init (g->error_data_list_lock); g->state = CONFIG; @@ -176,6 +177,7 @@ guestfs_create_flags (unsigned flags, ...) free (g->append); guestfs_int_free_error_data_list (g); gl_tls_key_destroy (g->error_data); + gl_lock_destroy (g->error_data_list_lock); gl_recursive_lock_destroy (g->lock); free (g); return NULL; -- 2.21.1 (Apple Git-122.3)
2014 Jun 27
3
[PATCH WIP] Can't generate argv variant
Hi everyone, lately I've been getting familiar with library and working on slight re-layering of the library. It's about having locking layer in public API and tracing one layer below that (let's call it __t_ layer. I'm not very good at making up names, so this is temporary:) ). Then making sure that all generated public stuff call __t_ layer and all other internal stuff
2014 May 29
2
[PATCH] library: per-handle locking support
...// take write lock, since we're going to update guarded per_handle_locks + gl_rwlock_wrlock (locks_lock); + + // ensure we don't get into data race when removing lock + guestfs___per_handle_lock_is_not_held (g); + + int i; + gl_lock_t l = guestfs___lookup_lock_or_abort (g, &i); + gl_lock_destroy (l); + handles[i] = NULL; + // fill in hole we've created + ___shrink_lock_arrays (); + + // and realloc + n_handles--; + if (n_handles > 0) { + per_handle_locks = realloc (per_handle_locks, + sizeof (*per_handle_locks) * n_handles); + handles = realloc (handles, sizeof (*...