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

Delta Between Two Patch Sets: src/pkg/net/sendfile_windows.go

Issue 8670044: code review 8670044: net: implement netpoll for windows (Closed)
Left Patch Set: Created 10 years, 11 months ago
Right Patch Set: diff -r 5ee81a14cdfe https://go.googlecode.com/hg/ Created 10 years, 8 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/net/fd_windows.go ('k') | src/pkg/net/sockopt_windows.go » ('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 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 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 package net 5 package net
6 6
7 import ( 7 import (
8 "io" 8 "io"
9 "os" 9 "os"
10 "syscall" 10 "syscall"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return 0, err, true 52 return 0, err, true
53 } 53 }
54 defer c.decref() 54 defer c.decref()
55 c.wio.Lock() 55 c.wio.Lock()
56 defer c.wio.Unlock() 56 defer c.wio.Unlock()
57 57
58 var o sendfileOp 58 var o sendfileOp
59 o.Init(c, 'w') 59 o.Init(c, 'w')
60 o.n = uint32(n) 60 o.n = uint32(n)
61 o.src = syscall.Handle(f.Fd()) 61 o.src = syscall.Handle(f.Fd())
62 » done, err := iosrv.ExecIO(&o, 0) 62 » done, err := iosrv.ExecIO(&o)
63 if err != nil { 63 if err != nil {
64 return 0, err, false 64 return 0, err, false
65 } 65 }
66 if lr != nil { 66 if lr != nil {
67 lr.N -= int64(done) 67 lr.N -= int64(done)
68 } 68 }
69 return int64(done), nil, true 69 return int64(done), nil, true
70 } 70 }
LEFTRIGHT

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