package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Feb 10, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
¶
spinlock
A spinlock implementation for Go.
It shares the same interface as sync.Mutex, and is intended to be used to synchronize exceptionally short lived operations.
Install
go get -u github.com/tidwall/spinlock
Josh Baker @tidwall
License
SpinLock source code is available under the MIT License.
Documentation
¶
Locker is a spinlock implementation.
A Locker must not be copied after first use.
Lock locks l.
If the lock is already in use, the calling goroutine
blocks until the locker is available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.