Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pygolang
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
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
pygolang
Commits
1de59346
Commit
1de59346
authored
Nov 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! sync: Provide package documentation
This amends commit
40f3b90c
: sync.Sema is not provided in Go version.
parent
c5c576d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
golang/_sync.pxd
golang/_sync.pxd
+4
-2
golang/sync.h
golang/sync.h
+5
-3
golang/sync.py
golang/sync.py
+1
-1
No files found.
golang/_sync.pxd
View file @
1de59346
...
...
@@ -17,13 +17,15 @@
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
"""Package sync mirrors Go package sync.
"""Package sync mirrors
and amends
Go package sync.
- `Once` allows to execute an action only once.
- `WaitGroup` allows to wait for a collection of tasks to finish.
- `Sema` and `Mutex` provide low-level synchronization.
- `Sema`
(*)
and `Mutex` provide low-level synchronization.
See also https://golang.org/pkg/sync for Go sync package documentation.
(*) not provided in Go version.
"""
cdef
extern
from
"golang/sync.h"
namespace
"golang::sync"
nogil
:
...
...
golang/sync.h
View file @
1de59346
...
...
@@ -20,11 +20,11 @@
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// Package sync mirrors Go package sync.
// Package sync mirrors
and amends
Go package sync.
//
// - `Once` allows to execute an action only once.
// - `WaitGroup` allows to wait for a collection of tasks to finish.
// - `Sema` and `Mutex` provide low-level synchronization.
// - `Sema`
(*)
and `Mutex` provide low-level synchronization.
//
// See also https://golang.org/pkg/sync for Go sync package documentation.
//
...
...
@@ -33,7 +33,9 @@
//
// Subset of sync package functionality is also provided via C-level API:
//
// - `_makesema` and `_sema*` provide semaphore functionality.
// - `_makesema` and `_sema*` provide semaphore functionality(*).
//
// (*) not provided in Go version.
#include <golang/libgolang.h>
...
...
golang/sync.py
View file @
1de59346
...
...
@@ -22,7 +22,7 @@
- `WorkGroup` allows to spawn group of goroutines working on a common task(*).
- `Once` allows to execute an action only once.
- `WaitGroup` allows to wait for a collection of tasks to finish.
- `Sema` and `Mutex` provide low-level synchronization.
- `Sema`
(*)
and `Mutex` provide low-level synchronization.
See also https://golang.org/pkg/sync for Go sync package documentation.
...
...
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