Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HashLocker ¶
type HashLocker struct {
// contains filtered or unexported fields
}
func NewHashLocker ¶
func NewHashLocker() *HashLocker
func (*HashLocker) Lock ¶
func (h *HashLocker) Lock(hash crypto.Hash)
func (*HashLocker) Unlock ¶
func (h *HashLocker) Unlock(hash crypto.Hash)
type PrioritySemaphore ¶
type PrioritySemaphore struct {
// contains filtered or unexported fields
}
func NewPrioritySemaphore ¶
func NewPrioritySemaphore(capacity int) *PrioritySemaphore
func (*PrioritySemaphore) Acquire ¶
func (p *PrioritySemaphore) Acquire(priority int)
func (*PrioritySemaphore) LockFor ¶
func (p *PrioritySemaphore) LockFor(priority int) TryLock
func (*PrioritySemaphore) Release ¶
func (p *PrioritySemaphore) Release()
func (*PrioritySemaphore) TryAcquire ¶
func (p *PrioritySemaphore) TryAcquire() bool
Click to show internal directories.
Click to hide internal directories.