[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [PLEASE TEST]: New locking code



On, Thu Jun 12, 2008, Greg Ewing wrote:

> Marcus von Appen wrote:
> 
> > It is - at least for me - no error, if I try to unlock a surface that a)
> > has no locks or b) is locked by something else.
> 
> But consider the following sequence:
> 
> 1. Something else locks the surface.
> 2. I lock the surface -- nothing happens, it's already locked.
> 3. Something else unlocks the surface.
> 4. I unlock the surface -- nothing happens, it's already unlocked.
> 
> In between 3 and 4, I think the surface is locked,
> but it's not.

No, locks are cumulative. Sorry, if I did not mention that.

Regards
Marcus

Attachment: pgpcF57ajzJV9.pgp
Description: PGP signature