search for: mutex_value

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

2012 Jan 26
1
[PATCH v2] libxl: fix mutex initialization
...2fecd -r 259112aee618 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Sat Jan 14 19:04:48 2012 +0100 +++ b/tools/libxl/libxl.c Sat Jan 14 19:04:48 2012 +0100 @@ -26,7 +26,6 @@ int libxl_ctx_alloc(libxl_ctx **pctx, in { libxl_ctx *ctx = NULL; struct stat stat_buf; - const pthread_mutex_t mutex_value = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; int rc; if (version != LIBXL_VERSION) { rc = ERROR_VERSION; goto out; } @@ -40,10 +39,10 @@ int libxl_ctx_alloc(libxl_ctx **pctx, in memset(ctx, 0, sizeof(libxl_ctx)); ctx->lg = lg; - /* This somewhat convoluted approach is nee...