Lines Matching refs:result
45 struct named_mutex *result;
47 result = talloc(mem_ctx, struct named_mutex);
48 if (result == NULL) {
53 result->name = talloc_strdup(result, name);
54 if (result->name == NULL) {
56 TALLOC_FREE(result);
60 result->tdb = tdb_wrap_open(result, lock_path("mutex.tdb"), 0,
62 if (result->tdb == NULL) {
65 TALLOC_FREE(result);
69 if (tdb_lock_bystring_with_timeout(result->tdb->tdb, name,
72 TALLOC_FREE(result);
76 talloc_set_destructor(result, unlock_named_mutex);
77 return result;