diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-03 17:59:14 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:54 (GMT) |
commit | 06dfd6025d0798d53f74f40763a9d8effdf3c7de (patch) | |
tree | 1ef4300deea56fac750ce7634e9ef6cc7296fd2f /src/H5CS.c | |
parent | ecdaf09c11521dc87c38e840a4345284b547e7b1 (diff) | |
download | hdf5-06dfd6025d0798d53f74f40763a9d8effdf3c7de.zip hdf5-06dfd6025d0798d53f74f40763a9d8effdf3c7de.tar.gz hdf5-06dfd6025d0798d53f74f40763a9d8effdf3c7de.tar.bz2 |
Replace pthread_self_ulong() with H5TS_thread_id(). The POSIX Threads
implementation ought to be portable to any system that has POSIX
Threads. On Windows, I use the same API call as before.
Diffstat (limited to 'src/H5CS.c')
-rw-r--r-- | src/H5CS.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -145,11 +145,7 @@ H5CS_print_stack(const H5CS_t *fstack, FILE *stream) HDfprintf(stream, "HDF5-DIAG: Function stack from %s ", H5_lib_vers_info_g); /* try show the process or thread id in multiple processes cases*/ -#ifdef H5_HAVE_THREADSAFE - HDfprintf(stream, "thread %lu.", HDpthread_self_ulong()); -#else /* H5_HAVE_THREADSAFE */ - HDfprintf(stream, "thread 0."); -#endif /* H5_HAVE_THREADSAFE */ + HDfprintf(stream, "thread %lu.", H5TS_thread_id()); if(fstack && fstack->nused>0) HDfprintf(stream, " Back trace follows."); HDfputc('\n', stream); |