From 0e3893e7e3e270f8231b89eaf89537cf01a43052 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Thu, 2 Sep 2010 22:50:00 +0200 Subject: CLEvent callbacks for HLB and LLB. --- src/com/jogamp/opencl/impl/CLImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/com/jogamp/opencl/impl/CLImpl.java') diff --git a/src/com/jogamp/opencl/impl/CLImpl.java b/src/com/jogamp/opencl/impl/CLImpl.java index abec3597..b9dd9835 100644 --- a/src/com/jogamp/opencl/impl/CLImpl.java +++ b/src/com/jogamp/opencl/impl/CLImpl.java @@ -123,6 +123,17 @@ public class CLImpl extends CLAbstractImpl { /** Entry point to C language function: int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * ); */ private native int clBuildProgram0(long program, int deviceCount, Object deviceList, int deviceListOffset, String options, BuildProgramCallback cb, long address); + + public int clSetEventCallback(long event, int trigger, CLEventCallback callback) { + final long address = addressTable._addressof_clSetEventCallback; + if (address == 0) { + throw new UnsupportedOperationException("Method not available"); + } + return clSetEventCallback0(event, trigger, callback, address); + } + + private native int clSetEventCallback0(long event, int type, CLEventCallback cb, long address); + /** Interface to C language function:
void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret); @param origin a direct {@link com.jogamp.common.nio.PointerBuffer} @param range a direct {@link com.jogamp.common.nio.PointerBuffer} -- cgit v1.2.3