Delta Between Two Patch Sets: misc/cgo/test/runtime.c
Issue 4253054 :
code review 4253054: runtime: scheduler, cgo reorganization (Closed)
Left Patch Set: diff -r 41e9fbdc1a43 https://go.googlecode.com/hg/
Right Patch Set: diff -r 7e7ceffb8515 https://go.googlecode.com/hg
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
misc/cgo/stdio/Makefile
misc/cgo/stdio/hello.go
misc/cgo/test/Makefile
misc/cgo/test/align.go
misc/cgo/test/basic.go
misc/cgo/test/callback.go
misc/cgo/test/callback_c.c
misc/cgo/test/cgo_test.go
misc/cgo/test/issue1222.go
misc/cgo/test/issue1328.go
misc/cgo/test/issue1560.go
misc/cgo/test/runtime.c
src/clean.bash
src/pkg/runtime/386/asm.s
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/arm/asm.s
src/pkg/runtime/cgocall.h
src/pkg/runtime/cgocall.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
LEFT RIGHT
(no file at all) 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Expose some runtime functions for testing.
6
7 typedef char bool;
8
9 bool runtime·lockedOSThread(void);
10
11 static void
12 FLUSH(void*)
13 {
14 }
15
16 void
17 ·lockedOSThread(bool b)
18 {
19 b = runtime·lockedOSThread();
20 FLUSH(&b);
21 }
LEFT RIGHT