add comment abt accessing dispatcher in ThreadedWindowLauncher

This commit is contained in:
John Colvin committed 2019-08-29 14:47:39 -04:00
1 parent 5b8a5af7cd
commit 53586d19df
1 file changed
+1
@@ -53,6 +53,7 @@ namespace mbts.ui.utilities {
int count = 0;
var stopwatch = new Stopwatch();
stopwatch.Start();
// dc.dispatcher is only assigned once, so it is safe to access it after a null check (despite this being multithreaded code)
while (dc.dispatcher == null || dc.dispatcher.HasShutdownStarted) {
await Task.Delay(100);
if (++count == max_loops) {