diff options
author | Sven Gothel <[email protected]> | 2011-12-11 04:10:34 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-12-11 04:10:34 +0100 |
commit | 4374d11a3a204ab608402ee24a8cee14eff923ef (patch) | |
tree | 6fcfa2b1b727e6df294a070fa67289bde335020a /src/java/jogamp/common/util/locks/LockDebugUtil.java | |
parent | 8dc2ad6a130c75121bc35e393d1cab89217d4d63 (diff) |
RecursiveThreadGroupLock: New recursive lock interface and impl, allowing 'spawn off' process to become the lock owner.
To avoid complicated synchronization via synchronized, wait and notify between one thread
and a 'spawn' off thread which temporarly requires the hold lock,
RecursiveThreadGroupLock allows to add and remove other threads to become owners of the lock
as if they were the original holder.
This simplifies some rare locking use cases, eg. in JOGL's GLProfile initialization sequence
where a SharedResourceRunner thread is taking over initialization of shared resources.
Diffstat (limited to 'src/java/jogamp/common/util/locks/LockDebugUtil.java')
0 files changed, 0 insertions, 0 deletions