[Mono-list] Calling two methods from two seperate threads in the same MonoDomain (mono embedding)

Chris Howie cdhowie at gmail.com
Tue Jul 22 09:17:41 EDT 2008

On Tue, Jul 22, 2008 at 6:25 AM, Darkas2 <Darkas at gmx.net> wrote:
> Ok, I found the problem. It was just something with SDL: I have to call
> SDL_Flip() with &*screen instead of just with screen. I think that's because
> of the multithreading (I call it from the new thread). That was hard to find
> out, because sometimes the screen was null and sometimes not (depends on
> which thread was faster). Thanks for your help, I think I can release the
> V0.1 now!

It sounds like what you have is an ugly workaround for a fundamental
thread synchronization issue.  Why not use mutexes?

Chris Howie

More information about the Mono-list mailing list