summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLPlatform.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-02-08 23:30:18 +0100
committerMichael Bien <[email protected]>2011-02-08 23:30:18 +0100
commitc8afa2e38a7d7174ceed0be2069856ed548192b4 (patch)
treedc4b42c144591b21d01d779a54598bad857dd353 /src/com/jogamp/opencl/CLPlatform.java
parent8e915ca25ddea1258a7c8db3e35e3a660d40775f (diff)
CLContext and CLPlatform are now threadsafe. Updated javadocs.
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r--src/com/jogamp/opencl/CLPlatform.java4
1 files changed, 3 insertions, 1 deletions
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();
* }
* </pre></p>
+ * concurrency:<br/>
+ * 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<String> getExtensions() {
+ public synchronized Set<String> getExtensions() {
if(extensions == null) {
extensions = new HashSet<String>();