diff options
author | Michael Bien <[email protected]> | 2011-07-11 19:20:21 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-07-11 19:20:21 +0200 |
commit | 29deee58472b1c475955718db7b1246fbb1df9d6 (patch) | |
tree | d5850055efc4714bfa7587aa7fd22b5db1149163 /src/com/jogamp/opencl/CLSampler.java | |
parent | 519cfb8a41e28e4d10e40496893a9aacf0bce6b1 (diff) |
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).
Diffstat (limited to 'src/com/jogamp/opencl/CLSampler.java')
-rw-r--r-- | src/com/jogamp/opencl/CLSampler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLSampler.java b/src/com/jogamp/opencl/CLSampler.java index 3f145b3b..c5b01c8b 100644 --- a/src/com/jogamp/opencl/CLSampler.java +++ b/src/com/jogamp/opencl/CLSampler.java @@ -79,7 +79,7 @@ public class CLSampler extends CLObjectResource { } @Override - public void release() { + public synchronized void release() { super.release(); int ret = binding.clReleaseSampler(ID); context.onSamplerReleased(this); |