C# Class AvalonStudio.TextEditor.Utils.BusyManager

This class is used to prevent stack overflows by representing a 'busy' flag that prevents reentrance when another call is running. However, using a simple 'bool busy' is not thread-safe, so we use a thread-static BusyManager.
Show file Open project: VitalElement/AvalonStudio

Public Methods

Method Description
Enter ( object obj ) : BusyLock

Method Details

Enter() public static method

public static Enter ( object obj ) : BusyLock
obj object
return BusyLock