Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalLocks ¶
type GlobalLocks struct {
// contains filtered or unexported fields
}
GlobalLocks All operations on the local disk need to be performed sequentially
func (*GlobalLocks) Release ¶
func (gl *GlobalLocks) Release(Id string)
Release deletes the lock on Id.
func (*GlobalLocks) TryAcquire ¶
func (gl *GlobalLocks) TryAcquire(Id string) bool
TryAcquire tries to acquire the lock for operating on Id and returns true if successful. If another operation is already using Id, returns false.
Click to show internal directories.
Click to hide internal directories.