indexing_lock

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexingLock

type IndexingLock struct {
	// contains filtered or unexported fields
}

func NewIndexingLock

func NewIndexingLock() *IndexingLock

func (*IndexingLock) InProgressCount

func (l *IndexingLock) InProgressCount() int

func (*IndexingLock) LockAll

func (l *IndexingLock) LockAll() error

func (*IndexingLock) TryLock

func (l *IndexingLock) TryLock(repoID uint32) bool

TryLock tries to acquire a lock for a given repository id.

func (*IndexingLock) Unlock

func (l *IndexingLock) Unlock(repoID uint32)

func (*IndexingLock) UnlockAll

func (l *IndexingLock) UnlockAll()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL