Method Thread.Mutex()->try_shared_lock()
- Method
try_shared_lock
MutexKeytry_shared_lock()
MutexKeytry_shared_lock(inttype)- 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