core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

syncobj.c File Reference


Detailed Description

Sync object management.

Unlike textures and other objects that are shared between contexts, sync objects are not bound to the context. As a result, the reference counting and delete behavior of sync objects is slightly different. References to sync objects are added:

References are removed:

Additionally, drivers may call _mesa_ref_sync_object and _mesa_unref_sync_object as needed to implement ServerWaitSync.

As with shader objects, sync object names become invalid as soon as glDeleteSync is called. For this reason glDeleteSync sets the DeletePending flag. All functions validate object handles by testing this flag.

Note:
Only GL_ARB_sync objects are shared between contexts. If support is ever added for either GL_NV_fence or GL_APPLE_fence different semantics will need to be implemented.
Author:
Ian Romanick <ian.d.romanick@intel.com>

#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "macros.h"


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4