C# Class ManagedFusion.TimedLock

Thanks to Eric Gunnerson and Phil Haack
Datei anzeigen Open project: managedfusion/managedfusion Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Lock ( object o ) : TimedLock

Lock an object.

Lock ( object o, System.TimeSpan timeout ) : TimedLock

The object to lock.

Private Methods

Method Description
TimedLock ( object o ) : System

Initializes a new instance of the TimedLock struct.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Lock() public static method

Lock an object.
public static Lock ( object o ) : TimedLock
o object The object to lock.
return TimedLock

Lock() public static method

The object to lock.
///
public static Lock ( object o, System.TimeSpan timeout ) : TimedLock
o object The object to lock.
timeout System.TimeSpan The timeout.
return TimedLock