Package org.lwjgl.opengles
Class EXTWin32KeyedMutex
- java.lang.Object
-
- org.lwjgl.opengles.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.
-
-
-
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 acquirekey
- is the mutex value to wait fortimeout
- 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 releasekey
- the mutex value set by the release operation
-
-