diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-03 22:23:06 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2020-05-06 20:37:42 (GMT) |
commit | 524af38af8877957308832dbe346aa84c7dea356 (patch) | |
tree | cc458a85aa3703e9caa8db0f5ce050615429f6ea /src/H5TSprivate.h | |
parent | bb3e1a5cafd0c35358e341836b758ea3b747f495 (diff) | |
download | hdf5-524af38af8877957308832dbe346aa84c7dea356.zip hdf5-524af38af8877957308832dbe346aa84c7dea356.tar.gz hdf5-524af38af8877957308832dbe346aa84c7dea356.tar.bz2 |
Change thread IDs to uint64_t from unsigned long, per Quincey's suggestion.
Fix a typo in the H5TS_thread_init() comment and reword some ID
properties.
Diffstat (limited to 'src/H5TSprivate.h')
-rw-r--r-- | src/H5TSprivate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5TSprivate.h b/src/H5TSprivate.h index 76cf8f1..f22ed52 100644 --- a/src/H5TSprivate.h +++ b/src/H5TSprivate.h @@ -68,7 +68,7 @@ H5_DLL void H5TS_win32_process_exit(void); H5_DLL herr_t H5TS_win32_thread_enter(void); H5_DLL herr_t H5TS_win32_thread_exit(void); -#define H5TS_thread_id() ((unsigned long)GetCurrentThreadId()) +#define H5TS_thread_id() ((uint64_t)GetCurrentThreadId()) #else /* H5_HAVE_WIN_THREADS */ @@ -102,7 +102,7 @@ typedef pthread_once_t H5TS_once_t; #define H5TS_mutex_init(mutex) pthread_mutex_init(mutex, NULL) #define H5TS_mutex_lock_simple(mutex) pthread_mutex_lock(mutex) #define H5TS_mutex_unlock_simple(mutex) pthread_mutex_unlock(mutex) -H5_DLL unsigned long H5TS_thread_id(void); +H5_DLL uint64_t H5TS_thread_id(void); #endif /* H5_HAVE_WIN_THREADS */ |