Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Threads Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

4.3 Synchronization Class Hierarchy

The Synchronization package includes the synchronization classes and the guard classes.

4.3.1 The Synchronization Class Hierarchy

The synchronization classes include mutual exclusion and condition synchronization mechanisms. The classes are shown in Section 4.3.2.

The RWSynchObject base class has a common interface for enabling and disabling automatic cancellation detection. All of the classes that derive from RWSynchObject can test for runnable cancellation prior to performing any synchronization operation that might result in a blocking wait. For more information, see Section 3.5.10, "Canceling a Runnable."

Figure 21: Synchronization class hierarchy

4.3.2 The Guard Class Hierarchy

To simplify the acquisition and release of synchronization resources and to make these operations safe in the presence of exceptions, the Synchronization package has a set of helper classes called guards. They are shown in Figure 22.

Guards are used for exception-safe mutex acquisition and release.

Figure 22: Guard class hierarchy



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.