summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2008-06-02 20:39:02 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2008-06-02 20:39:02 (GMT)
commit0eb9e1ac433586afe270e8ee34127808e26bf10e (patch)
tree8c2762c3ba7afa46449615051b2f341ed1130561 /perform
parent73fe71235694756962867bd2491d86dac82cad93 (diff)
downloadhdf5-0eb9e1ac433586afe270e8ee34127808e26bf10e.zip
hdf5-0eb9e1ac433586afe270e8ee34127808e26bf10e.tar.gz
hdf5-0eb9e1ac433586afe270e8ee34127808e26bf10e.tar.bz2
[svn-r15127] Purpose: Make Windows threadsafe debug message more useful
Description: On Linux-like systems, we can get the ID of the current thread through a pthread_self. However on Windows, the return cannot be cast as a threadID, so we simply couldn't get the ID. Previously we simply gave up and printed a message that we couldn't get an ID. Instead, though, we can use the Windows-specific call to GetCurrentThreadId(), which achieves the same goal. This way we can provide better debug output with threadsafe features. Tested: VS2005 on WinXP VS.NET on WinXP (other platforms not tested because change is within _WIN32 ifdef)
Diffstat (limited to 'perform')
0 files changed, 0 insertions, 0 deletions