Re: acquire

2000-01-16 Thread Erik Thiele
On Sat, Jan 15, 2000 at 04:40:07AM +0100, Andreas Beck wrote: > > i didn't do the correct code: > >if (ggiResourceMustAcquire(dbs[writeframe]->resource)) > > if (ggiResourceAcquire(dbs[writeframe]->resource,GGI_ACTYPE_WRITE)!=0) > > instead i did: > >if (ggiResourceMustAcquire(dbs[wr

Re: acquire

2000-01-15 Thread Andreas Beck
> i didn't do the correct code: >if (ggiResourceMustAcquire(dbs[writeframe]->resource)) > if (ggiResourceAcquire(dbs[writeframe]->resource,GGI_ACTYPE_WRITE)!=0) > instead i did: >if (ggiResourceMustAcquire(dbs[writeframe])) > if (ggiResourceAcquire(dbs[writeframe],GGI_ACTYPE_WR

Re: acquire

2000-01-14 Thread Erik Thiele
On Thu, Jan 13, 2000 at 11:09:56PM +0100, Christian Reiniger wrote: > Marcus Sundberg wrote: > > >> const ggi_directbuffer *dbuf; > >> > >> /* Acquire DirectBuffer before we use it. */ > >> if (ggiResourceAcquire(dbuf->resource, GGI_ACTYPE_WRITE) != 0) { > >> fail("Error acquiring Direct

Re: acquire

2000-01-13 Thread Christian Reiniger
Marcus Sundberg wrote: >> const ggi_directbuffer *dbuf; >> >> /* Acquire DirectBuffer before we use it. */ >> if (ggiResourceAcquire(dbuf->resource, GGI_ACTYPE_WRITE) != 0) { >> fail("Error acquiring DirectBuffer\n"); >> } >> >> >> this cannot work. if ggi_directbuffer is const, and >>

Re: acquire

2000-01-13 Thread Marcus Sundberg
Erik Thiele <[EMAIL PROTECTED]> writes: > ggiResourceMustAcquire is simply a macro that returns true if the > resource must be explicitly acquired and released, or false if not. > However, it is still safe to call > ggiResourceAcquire or ggiResourceRelease even in the latter case -- > it wo