diff options
| author | Russ Cox <rsc@golang.org> | 2013-02-20 17:48:23 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-02-20 17:48:23 -0500 |
| commit | 6c976393aea607e67f4d31e3a2ae7b3c0dc15ade (patch) | |
| tree | 7c168ce818eec974c9f28584a6497c616f4d8e6f /src/pkg/runtime/runtime.h | |
| parent | 43da336b151993fa3b0d17dc443f5ba9d29d482f (diff) | |
| download | go-6c976393aea607e67f4d31e3a2ae7b3c0dc15ade.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); |
