summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/BuildProgramCallback.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-25 14:27:17 +0200
committerMichael Bien <[email protected]>2010-04-25 14:27:17 +0200
commitf129ec5b006062e7a63cd9afbb92057b8faaeef9 (patch)
tree7c3d53d141bd795d3cfc4368ff34351e5b4290cb /src/com/jogamp/opencl/BuildProgramCallback.java
parent1be089aa2acaeef8670a5b19e7c2d08e7c87cb94 (diff)
implemented low level BuildProgramCallbacks.
- removed userdata arguments from createContext* and buildProgram bindings - updated LowLevelBindingTest
Diffstat (limited to 'src/com/jogamp/opencl/BuildProgramCallback.java')
-rw-r--r--src/com/jogamp/opencl/BuildProgramCallback.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/BuildProgramCallback.java b/src/com/jogamp/opencl/BuildProgramCallback.java
index fe2b29b9..9969c918 100644
--- a/src/com/jogamp/opencl/BuildProgramCallback.java
+++ b/src/com/jogamp/opencl/BuildProgramCallback.java
@@ -1,10 +1,19 @@
package com.jogamp.opencl;
/**
+ * A callback an application can register to be called when the program executable
+ * has been built (successfully or unsuccessfully).<br/>
+ * Note1: registering a build callback can make {@link CL#clBuildProgram} non blocking (OpenCL implementation dependent).<br/>
+ * Note2: the thread which calls this method is unspecified. The Application should ensure propper synchronization.
* @author Michael Bien
+ * @see CL#clBuildProgram(long, int, com.jogamp.common.nio.PointerBuffer, java.lang.String, com.jogamp.opencl.BuildProgramCallback)
*/
-// TODO implement callbacks
public interface BuildProgramCallback {
+
+ /**
+ * Called when the program executable
+ * has been built (successfully or unsuccessfully).
+ */
+ public void buildProgramCallback(long cl_program);
- public void buildProgramCallback(long cl_program, Object user_data);
}