Utility class for helping to debug deadlocks caused by lock synchronization.
Namespace: EnterpriseDT.Util.DebugAssembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0
Syntax
C# |
---|
public class Lock : IDisposable |
Visual Basic |
---|
Public Class Lock _ Implements IDisposable |
Visual C++ |
---|
public ref class Lock : IDisposable |
Remarks
When run in debug mode it will print logging information before entering and after leaving each lock-block.
To use, replace all occurrances of lock(xyz) with using(new LoggingLock(xyz)).