Releases the lock for the specified key.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9
Syntax
Parameters
- key
- Type: TKey
key to lock.
Exceptions
Exception | Condition |
---|---|
SynchronizationLockException | if the current thread does not hold this lock |
Remarks
If the current thread is the holder of this lock then the hold count is decremented. If the hold count is now zero then the lock is released. If the current thread is not the holder of this lock then SynchronizationLockException is thrown.
Warning:
This method uses GetHashCode and Equals of binary form of the key, not the actual implementations of GetHashCode and Equals defined in key's class.See Also