| A class that can be used to compose Syncs.
A LayeredSync object manages two other Sync objects,
outer and inner. The acquire operation
invokes outer.acquire() followed by inner.acquire(),
but backing out of outer (via release) upon an exception in inner.
The other methods work similarly.
LayeredSyncs can be used to compose arbitrary chains
by arranging that either of the managed Syncs be another
LayeredSync.
[ Introduction to this package. ]
|