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

12.6 Handling C++ Data Type Returns from an Asynchronous Call

There are some instances when an asynchronous function may return a C++ data type instead of a DB Interface Module data type. In these instances, the producer object itself becomes a future object by changing its status to notReady. Applications can query the isReady() method of the producer object to determine whether an asynchronous call is complete. When accessed in these instances, the producer object behaves like any other future object.

For example, RWDBReader::operator() returns a void * which is a C++ data type. When this operator is executed from an asynchronous RWDBReader, the RWDBReader that produced void * behaves like a future object, changing its status to notReady.



Previous fileTop of DocumentContentsIndex pageNext 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.
Contact Rogue Wave about documentation or support issues.