Merge pull request #3591 from directhex/mono_libdir_fallback
[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
13 #ifdef HAVE_SGEN_GC
14
15
16 #include <glib.h>
17 #include "sgen/sgen-gc.h"
18 #include "sgen/sgen-archdep.h"
19 #include "sgen/sgen-protocol.h"
20 #include "metadata/object-internals.h"
21 #include "metadata/gc-internals.h"
22
23
24 #if defined(USE_COOP_GC)
25
26 gboolean
27 sgen_resume_thread (SgenThreadInfo *info)
28 {
29         g_error ("FIXME");
30         return FALSE;
31 }
32
33 gboolean
34 sgen_suspend_thread (SgenThreadInfo *info)
35 {
36         g_error ("FIXME");
37         return FALSE;
38 }
39
40 void
41 sgen_wait_for_suspend_ack (int count)
42 {
43 }
44
45 /* LOCKING: assumes the GC lock is held */
46 int
47 sgen_thread_handshake (BOOL suspend)
48 {
49         g_error ("FIXME");
50         return 0;
51 }
52
53 void
54 sgen_os_init (void)
55 {
56 }
57
58 int
59 mono_gc_get_suspend_signal (void)
60 {
61         return -1;
62 }
63
64 int
65 mono_gc_get_restart_signal (void)
66 {
67         return -1;
68 }
69 #else
70
71 #ifdef _MSC_VER
72 // Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty.
73 void __mono_win32_sgen_os_coop_quiet_lnk4221(void) {}
74 #endif
75 #endif /* USE_COOP_GC */
76 #endif