EasyThread- Quick and Easy Application Threading
EasyThread- Quick and Easy Application Threading
"EasyThread is a .NET add-in (currently for C# and VS.NET 2003) and a set of threading guidelines that makes this process much easier."
...
"EasyThread is currently fairly small (about 600 lines of C# code). It uses the VS.NET “dte” interface to enumerate all projects in the current solution, all classes in each project, and all methods with each class. It looks for the “FgThread” and “BgThread” attributes on these methods and generates two helper methods for each of them (the first one accepts normal params and calls the second one using the required managed parameter forms. The second method runs on the desired fg/bg thread and calls the user’s target method, whose name is modified by adding an underscore (“_”) to the front of it. All of the call redirection is done by the helper, but the developer should be aware that the target method will be slightly renamed."
Intresting...
No comments:
Post a Comment