[svn-r11479] Purpose:

Maintenance on Windows
Description:
No Alarm function on Windows
Solution:

Platforms tested:
MSVS 6.0 on Windows XP
Misc. update:
This commit is contained in:
Fang Guo 2005-09-29 12:33:09 -05:00
parent 55c4f63df7
commit 3d21af7eb8

View File

@ -111,13 +111,8 @@ extern MPI_Info h5_io_info_g; /* MPI INFO object for IO */
* Alarm definitions to wait up (terminate) a test that runs too long.
*/
#define alarm_seconds 1200 /* default is 20 minutes */
#ifndef WIN32
#define ALARM_ON HDalarm(alarm_seconds)
#define ALARM_OFF HDalarm(0)
#else
#define ALARM_ON
#define ALARM_OFF
#endif
/* set alarms to N seconds if N > 0, else use default alarm_seconds. */
#define ALARM_SET(N) HDalarm((N)>0 ? N : alarm_seconds)