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

Delta Between Two Patch Sets: src/pkg/runtime/netpoll.goc

Issue 7579044: code review 7579044: runtime: integrated network poller for linux (Closed)
Left Patch Set: diff -r dfbaf2b999a6 https://dvyukov%40google.com@code.google.com/p/go/ Created 11 years ago
Right Patch Set: diff -r 631535312f2b https://dvyukov%40google.com@code.google.com/p/go/ Created 11 years 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/mem_linux.c ('k') | src/pkg/runtime/netpoll_epoll.c » ('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 2013 The Go Authors. All rights reserved. 1 // Copyright 2013 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 // +build darwin 5 // +build darwin linux,386 linux,amd64
6 6
7 package net 7 package net
8 8
9 #include "runtime.h" 9 #include "runtime.h"
10 #include "defs_GOOS_GOARCH.h" 10 #include "defs_GOOS_GOARCH.h"
11 #include "arch_GOARCH.h" 11 #include "arch_GOARCH.h"
12 #include "malloc.h" 12 #include "malloc.h"
13 13
14 // Integrated network poller (platform-independent part). 14 // Integrated network poller (platform-independent part).
15 // A particular implementation (epoll/kqueue) must define the following function s: 15 // A particular implementation (epoll/kqueue) must define the following function s:
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 for(i = 0; i < n; i++) { 339 for(i = 0; i < n; i++) {
340 pd[i].link = pollcache.first; 340 pd[i].link = pollcache.first;
341 pollcache.first = &pd[i]; 341 pollcache.first = &pd[i];
342 } 342 }
343 } 343 }
344 pd = pollcache.first; 344 pd = pollcache.first;
345 pollcache.first = pd->link; 345 pollcache.first = pd->link;
346 runtimeĀ·unlock(&pollcache); 346 runtimeĀ·unlock(&pollcache);
347 return pd; 347 return pd;
348 } 348 }
LEFTRIGHT

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