From 3b3dc4591d3690f61b9488ed74e7c9248def1fd5 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 2 May 2010 22:55:02 +0200 Subject: CLBuildListener functionality for high level bindings. - uses low level BuildProgramCallback internally - updated tests, testing async builds --- src/com/jogamp/opencl/impl/BuildProgramCallback.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/com/jogamp/opencl/impl/BuildProgramCallback.java (limited to 'src/com/jogamp/opencl/impl') 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).
+ * Note1: registering a build callback can make {@link CL#clBuildProgram} non blocking (OpenCL implementation dependent).
+ * 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); + +} -- cgit v1.2.3