Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 6, 2024
1 parent e42efba commit a094129
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/H5TSdlftt_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ H5TS_dlftt_mutex_init(H5TS_dlftt_mutex_t *mutex)
if (H5_UNLIKELY(H5TS_mutex_init(&mutex->mtx, H5TS_MUTEX_TYPE_PLAIN)) < 0)
HGOTO_DONE(FAIL);
mutex->bypass = false;
mutex->rc = 0;
mutex->rc = 0;

done:
FUNC_LEAVE_NOAPI_NAMECHECK_ONLY(ret_value)
Expand Down
6 changes: 3 additions & 3 deletions src/H5TSdlftt_mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ H5TS_dlftt_mutex_acquire(H5TS_dlftt_mutex_t *mtx)
/* Increment refcount */
mtx->rc++;
else {
unsigned dlftt = 0;
unsigned dlftt = 0;

/* Query the DLFTT value */
if (H5_UNLIKELY(H5TS__get_dlftt(&dlftt) < 0))
Expand All @@ -132,9 +132,9 @@ H5TS_dlftt_mutex_acquire(H5TS_dlftt_mutex_t *mtx)
else {
/* Indicate that lock should be bypassed */
mtx->bypass = true;
mtx->rc = 1;
mtx->rc = 1;
} /* end else */
} /* end else */
} /* end else */

return SUCCEED;
} /* end H5TS_dlftt_mutex_acquire() */
Expand Down
6 changes: 3 additions & 3 deletions src/H5TSprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ typedef atomic_flag H5TS_spinlock_t;

/* Mutex that efficiently obeys the "DLFTT" locking protocol */
typedef struct H5TS_dlftt_mutex_t {
H5TS_mutex_t mtx; /* Underlying mutex */
bool bypass; /* Whether locking is being bypassed (due to DLFTT protocol) */
unsigned rc; /* Refcount of locks bypassed */
H5TS_mutex_t mtx; /* Underlying mutex */
bool bypass; /* Whether locking is being bypassed (due to DLFTT protocol) */
unsigned rc; /* Refcount of locks bypassed */
} H5TS_dlftt_mutex_t;

/*****************************/
Expand Down

0 comments on commit a094129

Please sign in to comment.