ggiResourceRelease man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

ggiResourceAcquire(3)		      GGI		 ggiResourceAcquire(3)

NAME
       ggiResourceAcquire,    ggiResourceRelease,   ggiResourceMustAcquire   :
       Acquire and release a LibGGI resource

SYNOPSIS
       #include <ggi/ggi.h>

       int ggiResourceAcquire(ggi_resource_t res, uint32_t actype);

       int ggiResourceRelease(ggi_resource_t res);

       int ggiResourceMustAcquire(ggi_resource_t res);

DESCRIPTION
       ggiResourceAcquire acquires (locks)  a  LibGGI  resource,  typically  a
       DirectBuffer  (see  examples  below).  The actype indicates the desired
       access type for the operation.  The following  flags  may  be  bitwise-
       or'ed together:

       GGI_ACTYPE_READ
	      read access to the resource

       GGI_ACTYPE_WRITE
	      write access to the resource

       ggiResourceRelease releases (unlocks) an already-acquired resource.

       ggiResourceMustAcquire determines whether or not the specified resource
       needs to be acquired before using.

RETURN VALUE
       ggiResourceAcquire and ggiResourceRelease return 0 on success, an  ggi-
       error(3) code on failure.

       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 ggiResourceRe‐
       lease even in the latter case; it would be a no-op.

EXAMPLES
       Using DirectBuffers:

       const ggi_directbuffer *dbuf;

       /* Acquire DirectBuffer before we use it. */
       if (ggiResourceAcquire(dbuf->resource, GGI_ACTYPE_WRITE) != 0) {
	     fail("Error acquiring DirectBuffer\n");
       }

       /* Do framebuffer rendering here... */

       /* Release DirectBuffer when done with it. */
       ggiResourceRelease(dbuf->resource);

SEE ALSO
       ggi_directbuffer(3)

libggi-2.2.x			  2006-12-30		 ggiResourceAcquire(3)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net