Class EXTWin32KeyedMutex

java.lang.Object
org.lwjgl.opengl.EXTWin32KeyedMutex

public class EXTWin32KeyedMutex extends 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 Details

    • 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