An NDoc Documented Class Library

Lock Class

Utility class for helping to debug deadlocks caused by lock synchronization.

For a list of all members of this type, see Lock Members.

System.Object
   EnterpriseDT.Util.Debug.Lock

public class Lock : IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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)).

Requirements

Namespace: EnterpriseDT.Util.Debug

Assembly: edtFTPnet (in edtFTPnet.dll)

See Also

Lock Members | EnterpriseDT.Util.Debug Namespace