Class EXTWin32KeyedMutex


  • public class EXTWin32KeyedMutex
    extends java.lang.Object
    Native bindings to the EXT_win32_keyed_mutex extension.

    Direct3D image objects may have a built-in synchronization primitive associated with them that can be used to synchronize access to their contents across process and API boundaries. This extension provides access to that synchronization primitive via two new commands that operate on GL memory objects.

    Requires EXT_memory_object.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean glAcquireKeyedMutexWin32EXT​(int memory, long key, int timeout)
      Blocks GL command processing until a keyed mutex is acquired.
      static boolean glReleaseKeyedMutexWin32EXT​(int memory, long key)
      Releases a keyed mutex after all prior GL command processing has completed.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • glAcquireKeyedMutexWin32EXT

        public static boolean glAcquireKeyedMutexWin32EXT​(int memory,
                                                          long key,
                                                          int timeout)
        Blocks GL command processing until a keyed mutex is acquired.
        Parameters:
        memory - identifies which keyed mutex to acquire
        key - is the mutex value to wait for
        timeout - the time, in milliseconds, to wait before failing the acquire operation
      • glReleaseKeyedMutexWin32EXT

        public static boolean glReleaseKeyedMutexWin32EXT​(int memory,
                                                          long key)
        Releases a keyed mutex after all prior GL command processing has completed.
        Parameters:
        memory - identifies the keyed mutex to release
        key - the mutex value set by the release operation