Class KHRExternalSemaphore


  • public final class KHRExternalSemaphore
    extends java.lang.Object
    Native bindings to the khr_external_semaphore extension.

    cl_khr_semaphore introduced semaphores as a new type along with a set of APIs for create, release, retain, wait and signal operations on it. This extension defines APIs and mechanisms to share semaphores created in an external API by importing into and exporting from OpenCL.

    This extension defines:

    • New attributes that can be passed as part of cl_semaphore_properties_khr for specifying properties of external semaphores to be imported or exported.
    • New attributes that can be passed as part of cl_semaphore_info_khr for specifying properties of external semaphores to be exported.
    • An extension to CreateSemaphoreWithPropertiesKHR to accept external semaphore properties allowing to import or export an external semaphore into or from OpenCL.
    • Semaphore handle types required for importing and exporting semaphores.
    • Modifications to Wait and Signal API behavior when dealing with external semaphores created from different handle types.
    • API query exportable semaphores handles using specified handle type.

    Other related extensions define specific external semaphores that may be imported into or exported from OpenCL.

    Requires CL12 and the khr_semaphore extension.