Package com.jogamp.opencl.llb

Examples of com.jogamp.opencl.llb.CLEventBinding


    /**
     * Creates a new user event.
     */
    public static CLUserEvent create(CLContext context) {
        CLEventBinding binding = context.getPlatform().getEventBinding();
        int[] error = new int[1];
        long ID = binding.clCreateUserEvent(context.ID, error, 0);
        checkForError(error[0], "can not create user event.");
        return new CLUserEvent(context, ID);
    }
View Full Code Here


    /**
     * Sets the event execution status.
     * Calls {@native clSetUserEventStatus}.
     */
    public CLUserEvent setStatus(CLEvent.ExecutionStatus status) {
        CLEventBinding binding = getPlatform().getEventBinding();
        int err = binding.clSetUserEventStatus(ID, status.STATUS);
        if(err != CL_SUCCESS) {
            newException(err, "can not set status "+status);
        }
        return this;
    }
View Full Code Here

TOP

Related Classes of com.jogamp.opencl.llb.CLEventBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.