https://github.com/tidwall/spinlock
A spinlock implementation for Go.
https://github.com/tidwall/spinlock
Last synced: 9 months ago
JSON representation
A spinlock implementation for Go.
- Host: GitHub
- URL: https://github.com/tidwall/spinlock
- Owner: tidwall
- License: mit
- Created: 2018-03-12T00:30:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-10T15:56:09.000Z (almost 5 years ago)
- Last Synced: 2025-04-05T03:12:40.433Z (9 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 61
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spinlock
[](https://godoc.org/github.com/tidwall/spinlock)
A [spinlock](https://en.wikipedia.org/wiki/Spinlock) implementation for Go.
It shares the same interface as [sync.Mutex](https://golang.org/pkg/sync/#Mutex), and is intended to be used to synchronize exceptionally short lived operations.
## Install
```
go get -u github.com/tidwall/spinlock
```
## Contact
Josh Baker [@tidwall](http://twitter.com/tidwall)
## License
spinlock source code is available under the MIT [License](/LICENSE).