diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-06 01:31:59 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-06 01:31:59 (GMT) |
commit | 224cb4a03406ed72e02d026efeab47fdf7f6b33b (patch) | |
tree | c394cf8bf17037013c620232c801cc88c5d5d0a1 /src/H5TS.c | |
parent | 80179b0648f1f8f538023deb0a1b405408b5b59a (diff) | |
download | hdf5-224cb4a03406ed72e02d026efeab47fdf7f6b33b.zip hdf5-224cb4a03406ed72e02d026efeab47fdf7f6b33b.tar.gz hdf5-224cb4a03406ed72e02d026efeab47fdf7f6b33b.tar.bz2 |
Use a naked pthread_self() call in the HDF5 thread wrappers.
Diffstat (limited to 'src/H5TS.c')
-rw-r--r-- | src/H5TS.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |