Hi,

In this code...

ThreadPool.QueueUserWorkItem (delegate {
    BeginInvokeOnMainThread (delegate { 
        // Do something
    });
    Thread.Sleep(2000);
    // Check something
});

... how can I make sure the "// Do something" is completely done before
"//Check something"?

In other words, how can I check when BeginInvokeOnMainThread is done and
then do some stuff still in the ThreadPool.QueueUserWorkItem?

Thanks!
Mojo

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/When-is-BeginInvokeOnMainThread-done-tp4536089p4536089.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to