Skip to content

Commit

Permalink
Remove H5system.c warning on Windows oneAPI. (#3812)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee authored Nov 1, 2023
1 parent 39c0284 commit e9e4ffa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/H5system.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,13 +807,12 @@ H5_nanosleep(uint64_t nanosec)

#ifdef H5_HAVE_WIN32_API
DWORD dwMilliseconds = (DWORD)ceil(nanosec / 1.0e6);
DWORD ignore;

/* Windows can't sleep at a ns resolution. Best we can do is ~1 ms. We
* don't care about the return value since the second parameter
* (bAlertable) is false, so it will always be zero.
*/
ignore = SleepEx(dwMilliseconds, false);
SleepEx(dwMilliseconds, false);

#else

Expand Down

0 comments on commit e9e4ffa

Please sign in to comment.