summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/thread_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/thread_windows.c')
-rw-r--r--src/pkg/runtime/thread_windows.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/pkg/runtime/thread_windows.c b/src/pkg/runtime/thread_windows.c
index 8a448bc37..f684d3733 100644
--- a/src/pkg/runtime/thread_windows.c
+++ b/src/pkg/runtime/thread_windows.c
@@ -302,21 +302,6 @@ runtime·initsig(void)
USED(p);
}
-String
-runtime·signame(int32 sig)
-{
- int8 *s;
-
- switch(sig) {
- case SIGINT:
- s = "SIGINT: interrupt";
- break;
- default:
- return runtime·emptystring;
- }
- return runtime·gostringnocopy((byte*)s);
-}
-
uint32
runtime·ctrlhandler1(uint32 type)
{
@@ -437,3 +422,9 @@ runtime·setprof(bool on)
{
USED(on);
}
+
+int8 runtime·badcallbackmsg[] = "runtime: cgo callback on thread not created by Go.\n";
+int32 runtime·badcallbacklen = sizeof runtime·badcallbackmsg - 1;
+
+int8 runtime·badsignalmsg[] = "runtime: signal received on thread not created by Go.\n";
+int32 runtime·badsignallen = sizeof runtime·badsignalmsg - 1;