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
> 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
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
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
>>
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