Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOCK opType = iota UNLOCK RLOCK RUNLOCK )
View Source
const ( PENDING opState = iota ACTIVE DONE )
Variables ¶
View Source
var Opts = struct { // Waiting for a lock for longer than DeadlockTimeout is considered a deadlock. DeadlockTimeout time.Duration // The frequency at which timeout checks are performed CheckFrequency time.Duration // After this time already satisfied requests will be cleaned up CleanTimeout time.Duration }{ DeadlockTimeout: time.Second * 5, CheckFrequency: time.Second * 1, CleanTimeout: time.Second * 20, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.