summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygwait.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygwait.h')
-rw-r--r--winsup/cygwin/cygwait.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/cygwait.h b/winsup/cygwin/cygwait.h
index 0303ec3b6..d52a145ae 100644
--- a/winsup/cygwin/cygwait.h
+++ b/winsup/cygwin/cygwait.h
@@ -22,7 +22,10 @@ enum cw_wait_mask
cw_sig_eintr = 0x0008
};
-#define LARGE_NULL ((PLARGE_INTEGER) NULL)
+extern LARGE_INTEGER cw_nowait_storage;
+#define cw_nowait (&cw_nowait_storage)
+#define cw_infinite ((PLARGE_INTEGER) NULL)
+
const unsigned cw_std_mask = cw_cancel | cw_cancel_self | cw_sig;
DWORD cancelable_wait (HANDLE, PLARGE_INTEGER timeout = NULL,
@@ -53,5 +56,5 @@ cygwait (HANDLE h, DWORD howlong = INFINITE)
static inline DWORD __attribute__ ((always_inline))
cygwait (DWORD howlong)
{
- return cancelable_wait (NULL, howlong, cw_cancel | cw_sig_eintr);
+ return cygwait (NULL, howlong);
}