diff options
author | Michael Bien <[email protected]> | 2011-02-08 23:30:18 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-08 23:30:18 +0100 |
commit | c8afa2e38a7d7174ceed0be2069856ed548192b4 (patch) | |
tree | dc4b42c144591b21d01d779a54598bad857dd353 /src/com/jogamp/opencl/CLPlatform.java | |
parent | 8e915ca25ddea1258a7c8db3e35e3a660d40775f (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.java | 4 |
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>(); |