From 6c976393aea607e67f4d31e3a2ae7b3c0dc15ade Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 20 Feb 2013 17:48:23 -0500 Subject: runtime: allow cgo callbacks on non-Go threads Fixes #4435. R=golang-dev, iant, alex.brainman, minux.ma, dvyukov CC=golang-dev https://golang.org/cl/7304104 --- src/pkg/runtime/runtime.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index e63877e681..8162874bbe 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -289,6 +289,7 @@ struct M uint32 waitsemalock; GCStats gcstats; bool racecall; + bool needextram; void* racepc; uint32 moreframesize_minalloc; @@ -657,10 +658,11 @@ void runtime·ready(G*); byte* runtime·getenv(int8*); int32 runtime·atoi(byte*); void runtime·newosproc(M *mp, G *gp, void *stk, void (*fn)(void)); -void runtime·signalstack(byte*, int32); G* runtime·malg(int32); void runtime·asminit(void); void runtime·minit(void); +void runtime·unminit(void); +void runtime·signalstack(byte*, int32); Func* runtime·findfunc(uintptr); int32 runtime·funcline(Func*, uintptr); void* runtime·stackalloc(uint32); @@ -683,6 +685,8 @@ int32 runtime·gcount(void); void runtime·mcall(void(*)(G*)); uint32 runtime·fastrand1(void); +void runtime·setmg(M*, G*); +void runtime·newextram(void); void runtime·exit(int32); void runtime·breakpoint(void); void runtime·gosched(void); -- cgit v1.3-5-g9baa