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 Mar 20, 2024
1 parent 4fa7334 commit 4f04df9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
1 change: 0 additions & 1 deletion src/H5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,4 +1257,3 @@ H5is_library_terminating(bool *is_terminating /*out*/)

FUNC_LEAVE_API_NOINIT(ret_value)
} /* end H5is_library_terminating() */

1 change: 0 additions & 1 deletion src/H5TSonce.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ H5TS_once(H5TS_once_t *once, H5TS_once_init_func_t func)
#endif

#endif /* H5_HAVE_THREADSAFE */

29 changes: 18 additions & 11 deletions src/H5TSprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@

/* Static initialization values */
#ifdef H5_HAVE_WIN_THREADS
#define H5TS_KEY_INITIALIZER { NULL, 0, NULL }
#define H5TS_MUTEX_INITIALIZER { NULL }
#define H5TS_KEY_INITIALIZER \
{ \
NULL, 0, NULL \
}
#define H5TS_MUTEX_INITIALIZER \
{ \
NULL \
}
#define H5TS_COND_INITIALIZER CONDITION_VARIABLE_INIT
#define H5TS_ONCE_INITIALIZER INIT_ONCE_STATIC_INIT
#else
Expand Down Expand Up @@ -75,7 +81,7 @@ typedef DWORD H5TS_key_t;
typedef CRITICAL_SECTION H5TS_CAPABILITY("mutex") H5TS_mutex_t;
typedef CONDITION_VARIABLE H5TS_cond_t;
typedef PINIT_ONCE H5TS_once_t;
typedef PINIT_ONCE_FN H5TS_once_init_func_t
typedef PINIT_ONCE_FN H5TS_once_init_func_t
#else
typedef pthread_t H5TS_thread_t;
typedef void *(*H5TS_thread_start_func_t)(void *);
Expand All @@ -86,16 +92,17 @@ typedef pthread_once_t H5TS_once_t;
typedef void (*H5TS_once_init_func_t)(void);
#endif

/*****************************/
/* Library-private Variables */
/*****************************/
/*****************************/
/* Library-private Variables */
/*****************************/

/***************************************/
/* Library-private Function Prototypes */
/***************************************/
/***************************************/
/* Library-private Function Prototypes */
/***************************************/

/* Library/thread init/term operations */
H5_DLL void H5TS_term_package(void);
/* Library/thread init/term operations */
H5_DLL void
H5TS_term_package(void);
#ifdef H5_HAVE_WIN_THREADS
H5_DLL herr_t H5TS_win32_thread_enter(void);
H5_DLL herr_t H5TS_win32_thread_exit(void);
Expand Down
21 changes: 9 additions & 12 deletions src/H5TSwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,17 @@ H5TS__win32_process_enter(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContex)
*--------------------------------------------------------------------------
*/
herr_t
H5TS_win32_thread_enter(void)
{
FUNC_ENTER_NOAPI_NAMECHECK_ONLY
H5TS_win32_thread_enter(void){FUNC_ENTER_NOAPI_NAMECHECK_ONLY

/* Currently a placeholder function. TLS setup is performed
* elsewhere in the library.
*
* WARNING: Do NOT use C standard library functions here.
* CRT functions are not allowed in DllMain, which is where this code
* is used.
*/
/* Currently a placeholder function. TLS setup is performed
* elsewhere in the library.
*
* WARNING: Do NOT use C standard library functions here.
* CRT functions are not allowed in DllMain, which is where this code
* is used.
*/

FUNC_LEAVE_NOAPI_NAMECHECK_ONLY(SUCCEED)
} /* H5TS_win32_thread_enter() */
FUNC_LEAVE_NOAPI_NAMECHECK_ONLY(SUCCEED)} /* H5TS_win32_thread_enter() */

/*--------------------------------------------------------------------------
* Function: H5TS_win32_thread_exit
Expand Down

0 comments on commit 4f04df9

Please sign in to comment.