Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Advanced Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwGuard

Module:  Advanced Tools   Package:  Streams


Global Function

Local Index

Members

Description

An rwGuard manipulator creates a temporary guarded stream that locks the internal mutex of the preceding synchronized stream. In this way, any insertions or extractions following the manipulator within the statement will be atomic, that is, uninterrupted by any other threads. Note that if the preceding stream is not a synchronized stream, the rwGuard manipulator has no effect.

Example

Functions

RWByteInputStream 
rwGuard(RWByteInputStream& stream);
RWByteOutputStream
rwGuard(RWByteOutputStream& stream);
RWCharInputStream
rwGuard(RWCharInputStream& stream);
RWCharOutputStream
rwGuard(RWCharOutputStream& stream);
RWDataInputStream
rwGuard(RWDataInputStream& stream);
RWDataOutputStream 
rwGuard(RWDataOutputStream& stream);
RWUCharInputStream 
rwGuard(RWUCharInputStream& stream);
RWUCharOutputStream 
rwGuard(RWUCharOutputStream& stream);
RWWCharInputStream 
rwGuard(RWWCharInputStream& stream);
RWWCharOutputStream 
rwGuard(RWWCharOutputStream& stream);


Previous fileTop of DocumentContentsIndex pageNext file

© 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.
Contact Rogue Wave about documentation or support issues.