summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/impl/BuildProgramCallback.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/impl/BuildProgramCallback.java')
-rw-r--r--src/com/jogamp/opencl/impl/BuildProgramCallback.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/impl/BuildProgramCallback.java b/src/com/jogamp/opencl/impl/BuildProgramCallback.java
new file mode 100644
index 00000000..e4d68a4f
--- /dev/null
+++ b/src/com/jogamp/opencl/impl/BuildProgramCallback.java
@@ -0,0 +1,19 @@
+package com.jogamp.opencl.impl;
+
+/**
+ * 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 com.jogamp.opencl.CL#clBuildProgram(long, int, com.jogamp.common.nio.PointerBuffer, java.lang.String, com.jogamp.opencl.impl.BuildProgramCallback)
+ */
+public interface BuildProgramCallback {
+
+ /**
+ * Called when the program executable
+ * has been built (successfully or unsuccessfully).
+ */
+ public void buildFinished(long cl_program);
+
+}