![]() SourcePro C++ 12.5 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
The Threading package contains prebuilt, fundamental threading classes, giving you a head-start on building portable, multithreaded applications.
The Threading package includes the runnable classes, the thread attribute classes, and the IOU classes.
For complete information about the Threading package, see the Threads Module User's Guide.
Classes | |
| class | RWCancellation |
| Represents an exception that is thrown to cancel a thread. More... | |
| class | RWRunnable |
| Handle class for a runnable object, i.e. one that controls an application's threads of execution. More... | |
| class | RWRunnableFunction |
| Handle class for functor-based, runnable objects. More... | |
| class | RWRunnableHandle |
| Base class from which all runnable object handles derive. More... | |
| class | RWRunnableSelf |
| Handle class for a runnable object. More... | |
| class | RWRunnableServer |
| Represents a runnable server for executing runnable objects. More... | |
| class | RWRunnableTrap |
| Waits for a number of runnables or threads to reach a certain execution state. More... | |
| class | RWServerPool |
| Manages a pool of RWRunnableServer instances used to start runnable objects submitted for execution by other threads. More... | |
| class | RWThread |
| Handle class for a threaded runnable object. More... | |
| class | RWThreadAttribute |
| Encapsulates a set of attributes that define or control thread scheduling and stack allocation. More... | |
| class | RWThreadFunction |
| Handle class for functor-based threaded runnable objects. More... | |
| class | RWThreadManager |
| Attempts orderly thread shutdown at process exit. More... | |
| class | RWThreadPool |
| Manages a pool of RWThread instances used to execute work encapsulated as RWTFunctor<void()> functors. More... | |
| class | RWThreadSelf |
| Handle class for a threaded runnable object. More... | |
| class | RWTRunnableIOUFunction< Return > |
| Handle class for functor-based runnable objects. More... | |
| class | RWTThreadEscrowImp< Redeemable > |
| Multithread-safe implementation of RWTEscrowImp<Redeemable>. More... | |
| class | RWTThreadIOUFunction< Return > |
| Handle class for functor-based threaded runnable objects. More... | |
| class | RWTThreadLocal< Type > |
| Provides thread-local storage with simple by-value semantics. More... | |
| enum RWCompletionState |
RWCompletionState values describe the completion state of a runnable object. These values are returned by the getCompletionState() member functions of all runnable handles.
| enum RWConcurrencyPolicy |
RWConcurrencyPolicy values describe whether new kernel threads are created at each new thread creation.
| enum RWContentionScope |
RWContentionScope values describe whether threads contend for processing resources with other threads in the same process or other threads in the system.
| enum RWExecutionState |
RWExecutionState values describe the execution states of a runnable object. These values are returned by the getExecutionState() member functions of all runnable handles. A newly constructed runnable starts in RW_THR_INITIAL. After the application calls start() on the runnable handle, but before the target executable code is executed, the runnable is in RW_THR_STARTING. While the runnable is executing its executable code, the runnable is in RW_THR_RUNNING. After the runnable finishes, it returns to RW_THR_INITIAL.
The other RWExecutionState values correspond to operations made through the runnable's handle. A runnable enters the RW_THR_YIELDING or RW_THR_SLEEPING states only if the runnable handle's methods are called to yield or sleep. The global functions rwYield() or rwSleep() do not change the state of the runnable.
| enum RWInheritancePolicy |
RWInheritancePolicy values indicate whether default settings are provided by the creating thread or the thread attribute.
| enum RWSchedulingPolicy |
RWSchedulingPolicy values determine the scheduling policy.
| enum RWStartPolicy |
Determines whether a thread is in an interrupted state or is ready to run after the start() operation is complete.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.