BlockingTryEnterWriteLock Method (ReaderWriterLockSlim, Int32) |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Tries to enter the lock in write mode, with an optional time-out while still
respecting the calling thread's
ThreadTimeout.
Namespace:
Tangosol.Util
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic static bool TryEnterWriteLock(
ReaderWriterLockSlim rwLock,
int millis
)
Parameters
- rwLock
- Type: System.ThreadingReaderWriterLockSlim
The lock. - millis
- Type: SystemInt32
The maximum interval to wait, or -1 milliseconds to wait indefinitely.
Return Value
Type:
Booleantrue if the calling thread entered write mode, otherwise, false.
See Also