Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
d3a2021f
Commit
d3a2021f
authored
Sep 04, 2014
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: fix typos
LGTM=dvyukov R=dvyukov CC=golang-codereviews
https://golang.org/cl/141000043
parent
b1d01529
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/pkg/runtime/netpoll.go
src/pkg/runtime/netpoll.go
+3
-3
No files found.
src/pkg/runtime/netpoll.go
View file @
d3a2021f
...
...
@@ -14,7 +14,7 @@ import "unsafe"
// func netpollopen(fd uintptr, pd *pollDesc) int32 // to arm edge-triggered notifications
// and associate fd with pd.
// An implementation must call the following function to denote that the pd is ready.
// func netpollready(
rg, wg **gp
, pd *pollDesc, mode int32)
// func netpollready(
gpp **g
, pd *pollDesc, mode int32)
// pollDesc contains 2 binary semaphores, rg and wg, to park reader and writer
// goroutines respectively. The semaphore can be in the following states:
...
...
@@ -99,7 +99,7 @@ func netpollOpen(fd uintptr) (*pollDesc, int) {
func
netpollClose
(
pd
*
pollDesc
)
{
if
!
pd
.
closing
{
gothrow
(
"
runtime_
pollClose: close w/o unblock"
)
gothrow
(
"
net
pollClose: close w/o unblock"
)
}
if
pd
.
wg
!=
0
&&
pd
.
wg
!=
pdReady
{
gothrow
(
"netpollClose: blocked write on closing descriptor"
)
...
...
@@ -388,7 +388,7 @@ func netpolldeadlineimpl(pd *pollDesc, seq uintptr, read, write bool) {
var
rg
*
g
if
read
{
if
pd
.
rd
<=
0
||
pd
.
rt
.
f
==
nil
{
gothrow
(
"netpoll
DeadlineI
mpl: inconsistent read deadline"
)
gothrow
(
"netpoll
deadlinei
mpl: inconsistent read deadline"
)
}
pd
.
rd
=
-
1
atomicstorep
(
unsafe
.
Pointer
(
&
pd
.
rt
.
f
),
nil
)
// full memory barrier between store to rd and load of rg in netpollunblock
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment