Re: [AD] clipping without locking?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sun, 2004-11-28 at 08:44 +0100, Eric Botcazou wrote:
> >
> > But now, what if the timer thread is switched out just before draw, as
> > indicated above, and the main thread modifies the clipping of the
> > screen. Wouldn't this cause a crash? Am I overlooking something?
> 
> You're not, this stuff is well-known to be racy.  Search the archives for 
> various messages (mostly by me I think) about the problem.
> 

Thanks, I'll do so.. I don't see an easy way to fix it either, besides
asking users to be careful. Oh (and without having searched yet) -
shouldn't we make at least allegro itself use set_clip inside
require/release bitmap pairs? Things like rectfill or line don't do that
(the rectfill case was what probably caused the crash in my modified
exkeys).

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/