summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/syncobj.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-08-31 14:57:50 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-09-03 11:22:46 -0700
commit16b393d05990b6e917e144f9de87d0103b4c3e6d (patch)
treecdb95979b5f2e5606ce803127e195951f95fcf53 /src/mesa/main/syncobj.h
parentf5a22721c5731c7a4c20f86d9925d9e58324c7a5 (diff)
downloadexternal_mesa3d-16b393d05990b6e917e144f9de87d0103b4c3e6d.zip
external_mesa3d-16b393d05990b6e917e144f9de87d0103b4c3e6d.tar.gz
external_mesa3d-16b393d05990b6e917e144f9de87d0103b4c3e6d.tar.bz2
ARB sync: Fix delete behavior and context destruction behavior
I believe this resolves the outstanding issues WRT sync object deletetion. I have also added a large comment at the top of syncobj.c describing the expected memory management behavior. I'm still a little uncertain about the locking on ctx->Shared.
Diffstat (limited to 'src/mesa/main/syncobj.h')
-rw-r--r--src/mesa/main/syncobj.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h
index d2b4d05..fc160af 100644
--- a/src/mesa/main/syncobj.h
+++ b/src/mesa/main/syncobj.h
@@ -42,6 +42,12 @@ _mesa_init_sync(GLcontext *);
extern void
_mesa_free_sync_data(GLcontext *);
+extern void
+_mesa_ref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj);
+
+extern void
+_mesa_unref_sync_object(GLcontext *ctx, struct gl_sync_object *syncObj);
+
extern GLboolean
_mesa_IsSync(GLsync sync);