Package org.lwjgl.egl

Class KHRReusableSync


  • public class KHRReusableSync
    extends java.lang.Object
    Native bindings to the KHR_reusable_sync extension.

    This extension introduces the concept of "sync objects" into EGL. Sync objects are a synchronization primitive, representing events whose completion can be tested or waited upon. This extension borrows from the GL_ARB_sync extension but introduces a type of sync object known as "reusable sync object" comparable to an OS semaphore. The specification is designed to allow additional types of sync objects to be easily introduced in later extensions.

    Reusable sync objects may be used to synchronize activity between threads or between client APIs. Synchronization is accomplished by explicitly changing the status of a reusable object using EGL API commands.

    Requires EGL 1.1.

    • Method Detail

      • neglCreateSyncKHR

        public static long neglCreateSyncKHR​(long dpy,
                                             int type,
                                             long attrib_list)
      • eglCreateSyncKHR

        public static long eglCreateSyncKHR​(long dpy,
                                            int type,
                                            @Nullable
                                            java.nio.IntBuffer attrib_list)
      • eglDestroySyncKHR

        public static boolean eglDestroySyncKHR​(long dpy,
                                                long sync)
      • eglClientWaitSyncKHR

        public static int eglClientWaitSyncKHR​(long dpy,
                                               long sync,
                                               int flags,
                                               long timeout)
      • eglSignalSyncKHR

        public static boolean eglSignalSyncKHR​(long dpy,
                                               long sync,
                                               int mode)
      • neglGetSyncAttribKHR

        public static int neglGetSyncAttribKHR​(long dpy,
                                               long sync,
                                               int attribute,
                                               long value)
      • eglGetSyncAttribKHR

        public static boolean eglGetSyncAttribKHR​(long dpy,
                                                  long sync,
                                                  int attribute,
                                                  java.nio.IntBuffer value)
      • eglCreateSyncKHR

        public static long eglCreateSyncKHR​(long dpy,
                                            int type,
                                            @Nullable
                                            int[] attrib_list)
        Array version of: CreateSyncKHR
      • eglGetSyncAttribKHR

        public static boolean eglGetSyncAttribKHR​(long dpy,
                                                  long sync,
                                                  int attribute,
                                                  int[] value)
        Array version of: GetSyncAttribKHR