[Mono-bugs] [Bug 690944] TPL cannot use main UI thread TaskScheduler

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 9 12:01:22 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=690944

https://bugzilla.novell.com/show_bug.cgi?id=690944#c3


Chris Toshok <toshok at xamarin.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |toshok at xamarin.com
         Resolution|                            |FIXED

--- Comment #3 from Chris Toshok <toshok at xamarin.com> 2011-08-09 16:01:21 UTC ---
So, I added a SynchronizationContext subclass on the main UI thread which does:


                public override void Post (SendOrPostCallback d, object state)  
                {                                                               
                        NSRunLoop.Main.BeginInvokeOnMainThread ( () => d
(state) );                 
                }                                                               

                public override void Send (SendOrPostCallback d, object state)  
                {                                                               
                        NSRunLoop.Main.InvokeOnMainThread ( () => d (state) );  
                }                                                               

This fixes the test case.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list