diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-03-26 16:50:58 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-03-26 16:50:58 +0200 |
commit | 519725bb3c075ee2462c929f5997cb068e18466a (patch) | |
tree | 5b162e8488ad147a645048c073577821b4a2bee9 /src/pkg/runtime/thread_windows.c | |
parent | 842623c5dd2819d980ca9c58048d6bc6ed82475f (diff) | |
download | golang-upstream-weekly/2012.03.22.tar.gz |
Imported Upstream version 2012.03.22upstream-weekly/2012.03.22
Diffstat (limited to 'src/pkg/runtime/thread_windows.c')
-rw-r--r-- | src/pkg/runtime/thread_windows.c | 21 |
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; |