core / pragma.utils / AlertingMutex /
AlertingMutex #
open class AlertingMutex(name: String, locked: Boolean = false) : Mutex
AlertingMutex is an implementation of the Mutex interface that will log a warning if it cannot obtain a lock after 5000 ms.
References
- kotlinx.coroutines.sync.Mutex
Constructors #
| AlertingMutex | fun AlertingMutex(name: String, locked: Boolean = false) | 
Functions #
| Name | Summary | 
|---|---|
| 
 see kotlinx.coroutines.sync.Mutex.holdsLock | |
| 
 In addition to obtaining the lock, this method also starts a coroutine that will log a warning after 5000 ms. | |
| 
 see kotlinx.coroutines.sync.Mutex.tryLock | |
| 
 see kotlinx.coroutines.sync.Mutex.unlock | 
Properties #
| Name | Summary | 
|---|---|
| 
 see kotlinx.coroutines.sync.Mutex.isLocked | 
Inheritors #
| Name | 
|---|