From c8afa2e38a7d7174ceed0be2069856ed548192b4 Mon Sep 17 00:00:00 2001
From: Michael Bien
Date: Tue, 8 Feb 2011 23:30:18 +0100
Subject: CLContext and CLPlatform are now threadsafe. Updated javadocs.
---
src/com/jogamp/opencl/CLPlatform.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'src/com/jogamp/opencl/CLPlatform.java')
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java
index 1db3dcf2..218efed3 100644
--- a/src/com/jogamp/opencl/CLPlatform.java
+++ b/src/com/jogamp/opencl/CLPlatform.java
@@ -82,6 +82,8 @@ import static com.jogamp.opencl.CL.*;
* context.release();
* }
*
+ * concurrency:
+ * CLPlatform is threadsafe.
*
* @author Michael Bien
* @see #initialize()
@@ -441,7 +443,7 @@ public final class CLPlatform {
* Returns all platform extension names as unmodifiable Set.
*/
@CLProperty("CL_PLATFORM_EXTENSIONS")
- public Set getExtensions() {
+ public synchronized Set getExtensions() {
if(extensions == null) {
extensions = new HashSet();
--
cgit v1.2.3