90c8266b341f7749da66d0ae7d3fab1a6ebbffcc
[mono.git] / mono / metadata / sgen-os-coop.c
1 /*
2  * sgen-os-coop.c: SGen Cooperative backend support.
3  *
4  * Author:
5  *      João Matos (joao.matos@xamarin.com)
6  * Copyright (C) 2015 Xamarin Inc
7  *
8  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
9  */
10
11 #include "config.h"
12 #ifdef HAVE_SGEN_GC
13
14
15 #include <glib.h>
16 #include "sgen/sgen-gc.h"
17 #include "sgen/sgen-archdep.h"
18 #include "sgen/sgen-protocol.h"
19 #include "metadata/object-internals.h"
20 #include "metadata/gc-internals.h"
21
22
23 #if defined(USE_COOP_GC)
24
25 gboolean
26 sgen_resume_thread (SgenThreadInfo *info)
27 {
28         g_error ("FIXME");
29         return FALSE;
30 }
31
32 gboolean
33 sgen_suspend_thread (SgenThreadInfo *info)
34 {
35         g_error ("FIXME");
36         return FALSE;
37 }
38
39 void
40 sgen_wait_for_suspend_ack (int count)
41 {
42 }
43
44 /* LOCKING: assumes the GC lock is held */
45 int
46 sgen_thread_handshake (BOOL suspend)
47 {
48         g_error ("FIXME");
49         return 0;
50 }
51
52 void
53 sgen_os_init (void)
54 {
55 }
56
57 int
58 mono_gc_get_suspend_signal (void)
59 {
60         return -1;
61 }
62
63 int
64 mono_gc_get_restart_signal (void)
65 {
66         return -1;
67 }
68
69 #endif
70 #endif