[Mono-bugs] [Bug 653928] Delegate.BeginInvoke from thread-pool thread does NOT run until it exits

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 16 08:42:12 EST 2010


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

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


--- Comment #1 from Andy Hume <andyhume32 at yahoo.co.uk> 2010-11-16 13:42:12 UTC ---
So, according to Thread.ManagedThreadId, the BeginInvoke call schedules the
delegate to run on the same thread-pool thread!  No wonder it doesn't run until
the originating thread-pool method exits...

Mono 2.8:  Note from thread 2 to thread 2!
[[
* SimpleTest
229027406: Calling outer.BeginInvoke
229027421: Outer: calling inner.BeginInvoke  [TID: 2]
229027421: Outer: pausing...
229029421: Outer: exiting...
229029421:     Inner: Was I called only **after** Outer exited??????  [TID: 2]
]]

Mono 2.6.3:  Note from thread 2 to thread 3. :-)
[[
* SimpleTest
229005656: Calling outer.BeginInvoke
229005656: Outer: calling inner.BeginInvoke  [TID: 2]
229005656: Outer: pausing...
229005656:     Inner: Was I called only **after** Outer exited??????  [TID: 3]
229007656: Outer: exiting...
]]

-- 
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.


More information about the mono-bugs mailing list