fb6fc13bc451cb9dd60a04445ac6e0a37a75f377
[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  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License 2.0 as published by the Free Software Foundation;
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License 2.0 along with this library; if not, write to the Free
19  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21
22 #include "config.h"
23 #ifdef HAVE_SGEN_GC
24
25
26 #include <glib.h>
27 #include "sgen/sgen-gc.h"
28 #include "sgen/sgen-archdep.h"
29 #include "sgen/sgen-protocol.h"
30 #include "metadata/object-internals.h"
31 #include "metadata/gc-internals.h"
32
33
34 #if defined(USE_COOP_GC)
35
36 gboolean
37 sgen_resume_thread (SgenThreadInfo *info)
38 {
39         g_error ("FIXME");
40         return FALSE;
41 }
42
43 gboolean
44 sgen_suspend_thread (SgenThreadInfo *info)
45 {
46         g_error ("FIXME");
47         return FALSE;
48 }
49
50 void
51 sgen_wait_for_suspend_ack (int count)
52 {
53 }
54
55 /* LOCKING: assumes the GC lock is held */
56 int
57 sgen_thread_handshake (BOOL suspend)
58 {
59         g_error ("FIXME");
60         return 0;
61 }
62
63 void
64 sgen_os_init (void)
65 {
66 }
67
68 int
69 mono_gc_get_suspend_signal (void)
70 {
71         return -1;
72 }
73
74 int
75 mono_gc_get_restart_signal (void)
76 {
77         return -1;
78 }
79
80 #endif
81 #endif