diff options
Diffstat (limited to 'otherlibs/win32unix/sleep.c')
-rw-r--r-- | otherlibs/win32unix/sleep.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/otherlibs/win32unix/sleep.c b/otherlibs/win32unix/sleep.c new file mode 100644 index 000000000..36a3549f7 --- /dev/null +++ b/otherlibs/win32unix/sleep.c @@ -0,0 +1,25 @@ +/***********************************************************************/ +/* */ +/* Objective Caml */ +/* */ +/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ +/* */ +/* Copyright 1996 Institut National de Recherche en Informatique et */ +/* Automatique. Distributed only by permission. */ +/* */ +/***********************************************************************/ + +/* $Id$ */ + +#include <mlvalues.h> +#include "unixsupport.h" +#include <windows.h> + +value unix_sleep(t) /* ML */ + value t; +{ + enter_blocking_section(); + Sleep(Int_val(t) * 1000); + leave_blocking_section(); + return Val_unit; +} |