Jogamp
Fix: NativeWindow RecursiveToolkitLock, GLWindow lockSurface/unlockSurface
authorSven Gothel <sgothel@jausoft.com>
Thu, 7 Oct 2010 03:22:39 +0000 (05:22 +0200)
committerSven Gothel <sgothel@jausoft.com>
Thu, 7 Oct 2010 03:22:39 +0000 (05:22 +0200)
commitc8a9c59e4838cd43090378a7ed60544449472801
treec17b1b9b8f6aea4a491ef6085be7c9910f057c5c
parent018c7e8660dc0af68bd129be9af5094d04d0b431
Fix: NativeWindow RecursiveToolkitLock, GLWindow lockSurface/unlockSurface

Fix: NativeWindow RecursiveToolkitLock
    - Use notify(), instead of notifyAll(), so only one thread is being awakened
      for the single resource. Otherwise starvation and timeout happen, since
      the oldest thread might not get waken up (earlier than other threads) within timeout.

    - Inner class for all synchronized (flow/mem) fields for easier fine grained sync/lock.

Fix: GLWindow lockSurface/unlockSurface
    - Enter locked surface block only if surface lock could be acquired
make/scripts/java-run-all.sh
make/scripts/tests.bat
make/scripts/tests.sh
src/junit/com/jogamp/test/junit/nativewindow/TestRecursiveToolkitLockCORE.java [new file with mode: 0644]
src/junit/com/jogamp/test/junit/util/UITestCase.java
src/nativewindow/classes/com/jogamp/nativewindow/impl/RecursiveToolkitLock.java
src/newt/classes/com/jogamp/newt/impl/WindowImpl.java
src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
http://JogAmp.org git info: FAQ, tutorial and man pages.