[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-list
Subject: Re: [Mono-list] Calling two methods from two seperate threads in
From: "Chris Howie" <cdhowie () gmail ! com>
Date: 2008-07-22 13:17:41
Message-ID: 3d2f29dc0807220617q3b1f2011m81fe6f7aef8a8e57 () mail ! gmail ! com
[Download RAW message or body]
On Tue, Jul 22, 2008 at 6:25 AM, Darkas2 <Darkas@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
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic