Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1689)

Delta Between Two Patch Sets: src/pkg/runtime/runtime.h

Issue 6501077: code review 6501077: runtime: refactor goroutine blocking (Closed)
Left Patch Set: diff -r 5c4859bc123f https://dvyukov%40google.com@code.google.com/p/go/ Created 12 years, 7 months ago
Right Patch Set: diff -r 504058dabc37 https://dvyukov%40google.com@code.google.com/p/go/ Created 12 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/proc.c ('k') | src/pkg/runtime/sema.goc » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 /* 5 /*
6 * basic types 6 * basic types
7 */ 7 */
8 typedef signed char int8; 8 typedef signed char int8;
9 typedef unsigned char uint8; 9 typedef unsigned char uint8;
10 typedef signed short int16; 10 typedef signed short int16;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Grunning, 110 Grunning,
111 Gsyscall, 111 Gsyscall,
112 Gwaiting, 112 Gwaiting,
113 Gmoribund, 113 Gmoribund,
114 Gdead, 114 Gdead,
115 }; 115 };
116 enum 116 enum
117 { 117 {
118 true = 1, 118 true = 1,
119 false = 0, 119 false = 0,
120 };
121 enum
122 {
123 PtrSize = sizeof(void*),
120 }; 124 };
121 125
122 /* 126 /*
123 * structures 127 * structures
124 */ 128 */
125 union Lock 129 union Lock
126 { 130 {
127 uint32 key; // futex-based impl 131 uint32 key; // futex-based impl
128 M* waitm; // linked list of waiting M's (sema-based impl) 132 M* waitm; // linked list of waiting M's (sema-based impl)
129 }; 133 };
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 void runtime·setprof(bool); 823 void runtime·setprof(bool);
820 824
821 // float.c 825 // float.c
822 extern float64 runtime·nan; 826 extern float64 runtime·nan;
823 extern float64 runtime·posinf; 827 extern float64 runtime·posinf;
824 extern float64 runtime·neginf; 828 extern float64 runtime·neginf;
825 extern uint64 ·nan; 829 extern uint64 ·nan;
826 extern uint64 ·posinf; 830 extern uint64 ·posinf;
827 extern uint64 ·neginf; 831 extern uint64 ·neginf;
828 #define ISNAN(f) ((f) != (f)) 832 #define ISNAN(f) ((f) != (f))
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b