diff options
Diffstat (limited to 'src/com/jogamp/opencl/BuildProgramCallback.java')
-rw-r--r-- | src/com/jogamp/opencl/BuildProgramCallback.java | 13 |
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); } |