Method Thread.Mutex()->try_shared_lock()
- Method
try_shared_lock
MutexKey
try_shared_lock()
MutexKey
try_shared_lock(int
type
)- Description
This function performs the same operation as shared_lock(), but if the mutex is already locked exclusively, it will return zero instead of sleeping until it's unlocked.
- Note
Support for shared keys was added in Pike 8.1.
- See also