[Mono-devel-list] Re: Threading model

Robert Jordan robertj at gmx.net
Fri Aug 5 13:09:22 EDT 2005


Paul,

> Thanks for the heads up on that. I've looked at the C++ version at
> http://samples.gotdotnet.com/quickstart/util/srcview.aspx?lbLangPref=CP&path=/quickstart/howto/Samples/WinForms/ThreadMarshal/ThreadMarshal.src 
> but I'm not sure if I've got this right.

That's one of the best article I know about threading+SWF:

http://www.yoda.arachsys.com/csharp/threads/winforms.shtml

> would I be correct in thinking that I would need to change this to
> 
> MethodInvoker mi = new MethodInvoker(this, Monitor.Enter);
> while (true)
> {
>    this.BeginInvoke(mi);
>    t1.Text = (++count1).ToString();
>    t2.Text = (++count2).ToString();
>    Thread.Sleep(500);
> }

This would definitely not solve the problem ;-)

Rob




More information about the Mono-devel-list mailing list