diff options
author | Sven Gothel <[email protected]> | 2020-03-05 19:20:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-03-05 19:20:19 +0100 |
commit | 3e141416ea6c85c14dc622dae57f071d5fd0ff4f (patch) | |
tree | b59b7b782cdf768ba28939c88159e02eafb98f5a /src/nativewindow/classes/jogamp | |
parent | 36ca7245653b1a0897f2070b9acbe0f0898f5949 (diff) |
Bug 1398: Expose NativeSurface implementation's RecursiveLock if utilized
This prepares proper release of the acquired NativeSurface lock to cure the missing CGLContext lock, see followup commit.
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java index 9f650f760..98fb6aa3b 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java +++ b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java @@ -191,6 +191,11 @@ public abstract class ProxySurfaceImpl implements ProxySurface { } @Override + public RecursiveLock getLock() { + return surfaceLock; + } + + @Override public int lockSurface() throws NativeWindowException, RuntimeException { surfaceLock.lock(); int res = surfaceLock.getHoldCount() == 1 ? LOCK_SURFACE_NOT_READY : LOCK_SUCCESS; // new lock ? |