aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-02-27 23:32:42 -0500
committerRuss Cox <rsc@golang.org>2011-02-27 23:32:42 -0500
commit582fd17e11a25f7e1410a5e1dc9057b409f9b4e9 (patch)
tree3d532dd29960e7ea3b2465534f379932dc7be97b /src/pkg/runtime/runtime.h
parentfdbbb066ed86a08c39ac6195548054435406b60d (diff)
downloadgo-582fd17e11a25f7e1410a5e1dc9057b409f9b4e9.tar.xz
runtime: idle goroutine
This functionality might be used in environments where programs are limited to a single thread, to simulate a select-driven network server. It is not exposed via the standard runtime API. R=r, r2 CC=golang-dev https://golang.org/cl/4254041
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 4456e9b8d4..5db86a1771 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -197,6 +197,7 @@ struct G
bool ispanic;
M* m; // for debuggers, but offset not hard-coded
M* lockedm;
+ M* idlem;
int32 sig;
uintptr sigcode0;
uintptr sigcode1;
@@ -233,6 +234,7 @@ struct M
uint32 machport; // Return address for Mach IPC (OS X)
MCache *mcache;
G* lockedg;
+ G* idleg;
uint32 freglo[16]; // D[i] lsb and F[i]
uint32 freghi[16]; // D[i] msb and F[i+16]
uint32 fflag; // floating point compare flags