Tuesday, May 11, 2004

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

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...