Method Thread.MutexKey()->try_upgrade()


Method try_upgrade

bool try_upgrade()

Description

Try to upgrade a downgraded lock into an exclusive lock.

Returns
0

Returns 0 (zero) if there are other concurrent shared locks active.

1

Returns 1 if this is the only active lock, and upgrading it to being exclusive succeeded.

See also

downgrade(), upgrade()