From 29deee58472b1c475955718db7b1246fbb1df9d6 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 11 Jul 2011 19:20:21 +0200 Subject: changed resource release synchronization in a way that we can allow concurrent releases of the root and children of the resource hierarchy without a global lock (and a "already released" exception). --- src/com/jogamp/opencl/CLBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl/CLBuffer.java') diff --git a/src/com/jogamp/opencl/CLBuffer.java b/src/com/jogamp/opencl/CLBuffer.java index 03e07477..d4e0d003 100644 --- a/src/com/jogamp/opencl/CLBuffer.java +++ b/src/com/jogamp/opencl/CLBuffer.java @@ -127,7 +127,7 @@ public class CLBuffer extends CLMemory { } @Override - public void release() { + public synchronized void release() { if(childs != null) { while(!childs.isEmpty()) { childs.get(0).release(); -- cgit v1.2.3