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
21af3d86
Commit
21af3d86
authored
Dec 19, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: correct '.' to '·' in comments
R=golang-dev, r CC=golang-dev
https://golang.org/cl/5495097
parent
634f0eda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/pkg/runtime/lock_futex.c
src/pkg/runtime/lock_futex.c
+2
-2
src/pkg/runtime/lock_sema.c
src/pkg/runtime/lock_sema.c
+3
-3
No files found.
src/pkg/runtime/lock_futex.c
View file @
21af3d86
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
// This implementation depends on OS-specific implementations of
// This implementation depends on OS-specific implementations of
//
//
// runtime
.
futexsleep(uint32 *addr, uint32 val, int64 ns)
// runtime
·
futexsleep(uint32 *addr, uint32 val, int64 ns)
// Atomically,
// Atomically,
// if(*addr == val) sleep
// if(*addr == val) sleep
// Might be woken up spuriously; that's allowed.
// Might be woken up spuriously; that's allowed.
// Don't sleep longer than ns; ns < 0 means forever.
// Don't sleep longer than ns; ns < 0 means forever.
//
//
// runtime
.
futexwakeup(uint32 *addr, uint32 cnt)
// runtime
·
futexwakeup(uint32 *addr, uint32 cnt)
// If any procs are sleeping on addr, wake up at most cnt.
// If any procs are sleeping on addr, wake up at most cnt.
enum
enum
...
...
src/pkg/runtime/lock_sema.c
View file @
21af3d86
...
@@ -8,17 +8,17 @@
...
@@ -8,17 +8,17 @@
// This implementation depends on OS-specific implementations of
// This implementation depends on OS-specific implementations of
//
//
// uintptr runtime
.
semacreate(void)
// uintptr runtime
·
semacreate(void)
// Create a semaphore, which will be assigned to m->waitsema.
// Create a semaphore, which will be assigned to m->waitsema.
// The zero value is treated as absence of any semaphore,
// The zero value is treated as absence of any semaphore,
// so be sure to return a non-zero value.
// so be sure to return a non-zero value.
//
//
// int32 runtime
.
semasleep(int64 ns)
// int32 runtime
·
semasleep(int64 ns)
// If ns < 0, acquire m->waitsema and return 0.
// If ns < 0, acquire m->waitsema and return 0.
// If ns >= 0, try to acquire m->waitsema for at most ns nanoseconds.
// If ns >= 0, try to acquire m->waitsema for at most ns nanoseconds.
// Return 0 if the semaphore was acquired, -1 if interrupted or timed out.
// Return 0 if the semaphore was acquired, -1 if interrupted or timed out.
//
//
// int32 runtime
.
semawakeup(M *mp)
// int32 runtime
·
semawakeup(M *mp)
// Wake up mp, which is or will soon be sleeping on mp->waitsema.
// Wake up mp, which is or will soon be sleeping on mp->waitsema.
//
//
...
...
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