Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
CCR Programming - Jeffrey Richter and George Chrysanthakopoulos
Nov 01, 2006 at 1:38 PMI have a comment about the UseBackgroundThreads static property on Dispatcher.
It looks like you can set this property and its value is used during the creation of a Dispatcher instance. It feels to me like it should be a contructor parameter instead of a static property.
The reason I ask is that we have CCR code (running in the same AppDomain) that was written by several developers. It seems like having to do something like this introduces a race condition:
bool old = Dispatcher.UseBackgroundThreads;
Dispatcher.UseBackgroundThreads = true;
Dispatcher d = new Dispatcher();
Dispatcher.UseBackgroundThreads = old;
Am I missing the reason for this design decision?
Thanks,
Dan