summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLPlatform.java
diff options
context:
space:
mode:
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>();