gitlab.com/jokerrs1/Sia@v1.3.2/modules/modules.go (about) 1 // Package modules contains definitions for all of the major modules of Sia, as 2 // well as some helper functions for performing actions that are common to 3 // multiple modules. 4 package modules 5 6 import ( 7 "time" 8 9 "github.com/NebulousLabs/Sia/build" 10 ) 11 12 var ( 13 // SafeMutexDelay is the recommended timeout for the deadlock detecting 14 // mutex. This value is DEPRECATED, as safe mutexes are no longer 15 // recommended. Instead, the locking conventions should be followed and a 16 // traditional mutex or a demote mutex should be used. 17 SafeMutexDelay time.Duration 18 ) 19 20 func init() { 21 if build.Release == "dev" { 22 SafeMutexDelay = 60 * time.Second 23 } else if build.Release == "standard" { 24 SafeMutexDelay = 90 * time.Second 25 } else if build.Release == "testing" { 26 SafeMutexDelay = 30 * time.Second 27 } 28 }