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

Delta Between Two Patch Sets: src/pkg/runtime/thread_windows.c

Issue 5490053: code review 5490053: runtime: make more build-friendly (Closed)
Left Patch Set: Created 13 years, 3 months ago
Right Patch Set: diff -r 046739c8299b https://go.googlecode.com/hg/ Created 13 years, 3 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/thread_plan9.c ('k') | src/pkg/runtime/time.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
(no file at all)
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 #include "runtime.h" 5 #include "runtime.h"
6 #include "type.h" 6 #include "type.h"
7 #include "defs.h" 7 #include "defs_GOOS_GOARCH.h"
8 #include "os.h" 8 #include "os_GOOS.h"
9 9
10 #pragma dynimport runtime·CloseHandle CloseHandle "kernel32.dll" 10 #pragma dynimport runtime·CloseHandle CloseHandle "kernel32.dll"
11 #pragma dynimport runtime·CreateEvent CreateEventA "kernel32.dll" 11 #pragma dynimport runtime·CreateEvent CreateEventA "kernel32.dll"
12 #pragma dynimport runtime·CreateThread CreateThread "kernel32.dll" 12 #pragma dynimport runtime·CreateThread CreateThread "kernel32.dll"
13 #pragma dynimport runtime·CreateWaitableTimer CreateWaitableTimerA "kernel32.dll " 13 #pragma dynimport runtime·CreateWaitableTimer CreateWaitableTimerA "kernel32.dll "
14 #pragma dynimport runtime·DuplicateHandle DuplicateHandle "kernel32.dll" 14 #pragma dynimport runtime·DuplicateHandle DuplicateHandle "kernel32.dll"
15 #pragma dynimport runtime·ExitProcess ExitProcess "kernel32.dll" 15 #pragma dynimport runtime·ExitProcess ExitProcess "kernel32.dll"
16 #pragma dynimport runtime·FreeEnvironmentStringsW FreeEnvironmentStringsW "kerne l32.dll" 16 #pragma dynimport runtime·FreeEnvironmentStringsW FreeEnvironmentStringsW "kerne l32.dll"
17 #pragma dynimport runtime·GetEnvironmentStringsW GetEnvironmentStringsW "kernel3 2.dll" 17 #pragma dynimport runtime·GetEnvironmentStringsW GetEnvironmentStringsW "kernel3 2.dll"
18 #pragma dynimport runtime·GetProcAddress GetProcAddress "kernel32.dll" 18 #pragma dynimport runtime·GetProcAddress GetProcAddress "kernel32.dll"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 runtime·stdcall(runtime·SetWaitableTimer, 6, 404 runtime·stdcall(runtime·SetWaitableTimer, 6,
405 profiletimer, &due, (uintptr)ms, nil, nil, nil); 405 profiletimer, &due, (uintptr)ms, nil, nil, nil);
406 runtime·atomicstore((uint32*)&m->profilehz, hz); 406 runtime·atomicstore((uint32*)&m->profilehz, hz);
407 } 407 }
408 408
409 void 409 void
410 os·sigpipe(void) 410 os·sigpipe(void)
411 { 411 {
412 runtime·throw("too many writes on closed pipe"); 412 runtime·throw("too many writes on closed pipe");
413 } 413 }
LEFTRIGHT

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