summaryrefslogtreecommitdiffstats
path: root/src/H5TS.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-06 01:31:59 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-11 15:21:59 (GMT)
commit8aa74137dd79f07ac2fecafbd7dbcc8e1b537af2 (patch)
tree34b50c25f0ff3f6eb603939e6d23c91073fbe6be /src/H5TS.c
parenta7dd25be55a2f0e2e528cc9b1e320b0293821425 (diff)
downloadhdf5-8aa74137dd79f07ac2fecafbd7dbcc8e1b537af2.zip
hdf5-8aa74137dd79f07ac2fecafbd7dbcc8e1b537af2.tar.gz
hdf5-8aa74137dd79f07ac2fecafbd7dbcc8e1b537af2.tar.bz2
Use a naked pthread_self() call in the HDF5 thread wrappers.
Diffstat (limited to 'src/H5TS.c')
-rw-r--r--src/H5TS.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5TS.c b/src/H5TS.c
index 7a801e2..cc55810 100644
--- a/src/H5TS.c
+++ b/src/H5TS.c
@@ -262,7 +262,7 @@ H5TS_mutex_lock(H5TS_mutex_t *mutex)
if (ret_value)
return ret_value;
- if(mutex->lock_count && pthread_equal(HDpthread_self(), mutex->owner_thread)) {
+ if(mutex->lock_count && pthread_equal(pthread_self(), mutex->owner_thread)) {
/* already owned by self - increment count */
mutex->lock_count++;
} else {
@@ -271,7 +271,7 @@ H5TS_mutex_lock(H5TS_mutex_t *mutex)
pthread_cond_wait(&mutex->cond_var, &mutex->atomic_lock);
/* After we've received the signal, take ownership of the mutex */
- mutex->owner_thread = HDpthread_self();
+ mutex->owner_thread = pthread_self();
mutex->lock_count = 1;
}