-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathst_win32.h
41 lines (34 loc) · 1.6 KB
/
st_win32.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**************************************************************************/
/* */
/* OCaml */
/* */
/* Xavier Leroy and Damien Doligez, INRIA Rocquencourt */
/* */
/* Copyright 2009 Institut National de Recherche en Informatique et */
/* en Automatique. */
/* */
/* All rights reserved. This file is distributed under the terms of */
/* the GNU Lesser General Public License version 2.1, with the */
/* special exception on linking described in the file LICENSE. */
/* */
/**************************************************************************/
/* Win32 implementation of the "st" interface */
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#include <windows.h>
Caml_inline void st_msleep(int msec)
{
Sleep(msec);
}
#include "st_pthreads.h"
/* Signal handling -- none under Win32 */
value caml_thread_sigmask(value cmd, value sigs)
{
caml_invalid_argument("Thread.sigmask not implemented");
return Val_int(0); /* not reached */
}
value caml_wait_signal(value sigs)
{
caml_invalid_argument("Thread.wait_signal not implemented");
return Val_int(0); /* not reached */
}