AsyncReaderWriterLock::HideLocks Method ()
Visual Studio 2015
Microsoft internal only. Prevents use or visibility of the caller's lock(s) until the returned value is disposed.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Return Value
Type: Microsoft.VisualStudio.Threading::AsyncReaderWriterLock::SuppressionThe AsyncReaderWriterLock::Suppressionvto dispose to restore lock visibility.
This can be used by a write lock holder that is about to fork execution in order to prevent the second thread from holding the exclusive write lock. The lock should be hidden just before kicking off the work and can be restored immediately after kicking off the work.
Show: