aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-08-25 20:12:26 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-08-25 20:12:26 +0400
commitebac0e6f302c52e97a212fab8837a73f31edc884 (patch)
treea5cebadb4cb85c781b23329900a1b0b1a766573e /src/pkg/runtime/runtime.h
parent846db08936ee89b95d002b6f38e26d84eece6eec (diff)
downloadgo-ebac0e6f302c52e97a212fab8837a73f31edc884.tar.xz
runtime: convert async semaphores to Go
LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews, khr https://golang.org/cl/126210046
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index c96fc81417..d7709ae3c1 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -224,8 +224,9 @@ struct SudoG
{
G* g;
uint32* selectdone;
- SudoG* link;
- byte* elem; // data element
+ SudoG* next;
+ SudoG* prev;
+ void* elem; // data element
int64 releasetime;
int32 nrelease; // -1 for acquire
SudoG* waitlink; // G.waiting list