summaryrefslogtreecommitdiffstats
path: root/src/H5win32defs.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-03 17:59:14 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2020-05-06 20:37:14 (GMT)
commit763d7a778e7b08a0f6bffcd6c471dbcd02147141 (patch)
treea772aef0ea894056bb4e0210f3a28588011edcb5 /src/H5win32defs.h
parent25f30e7d63ac3c567b38233a2d4b6d3472754754 (diff)
downloadhdf5-763d7a778e7b08a0f6bffcd6c471dbcd02147141.zip
hdf5-763d7a778e7b08a0f6bffcd6c471dbcd02147141.tar.gz
hdf5-763d7a778e7b08a0f6bffcd6c471dbcd02147141.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/H5win32defs.h')
-rw-r--r--src/H5win32defs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index 0a0bd37..00df56d 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -163,10 +163,6 @@ extern "C" {
/* Non-POSIX functions */
-/* Don't use actual pthread_self on Windows because the return
- * type cannot be cast as a ulong like other systems. */
-#define HDpthread_self_ulong() ((unsigned long)GetCurrentThreadId())
-
#ifndef H5_HAVE_MINGW
#define HDftruncate(F,L) _chsize_s(F,L)
#define HDfseek(F,O,W) _fseeki64(F,O,W)