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

2011-08-09 Thread bugzilla_noreply

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

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


Chris Toshok  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||tos...@xamarin.com
 Resolution||FIXED

--- Comment #3 from Chris Toshok  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.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


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

2011-08-08 Thread bugzilla_noreply

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

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


--- Comment #2 from Jérémie LAVAL  2011-08-08 22:34:45 
UTC ---
Ah yeah, it slipped off my radar, sorry. I'll move that to xamarin bugzilla.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


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

2011-08-08 Thread bugzilla_noreply

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

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


Jeffrey Stedfast  changed:

   What|Removed |Added

 CC||j...@xamarin.com

--- Comment #1 from Jeffrey Stedfast  2011-08-08 22:32:37 UTC 
---
Looks like the TaskScheduler is queueing it on the correct
SynchronizationContext, but SynchronizationContext.Post() is just tossing it
into the thread pool willy nilly and letting the thread pool decide what thread
to run it on completely independently.

At this point, I'm in over my head (I was in over my head from the get-go) and
my usefulness in debugging this further and fixing it is basically zilch. We'll
probably need Jeremy Laval to look into fixing this.

Jeremy: *poke*

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


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

2011-04-30 Thread bugzilla_noreply

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

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


Jérémie LAVAL  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jeremie.la...@gmail.com
 AssignedTo|mono-bugs@lists.ximian.com  |jeremie.la...@gmail.com

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
You are the assignee for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs