qpid::sys::ForkWithMessage Class Reference

Like Fork but also allows the child to send a string message or throw an exception to the parent. More...

#include <Fork.h>

Inheritance diagram for qpid::sys::ForkWithMessage:

Inheritance graph
[legend]
Collaboration diagram for qpid::sys::ForkWithMessage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void fork ()
 Fork the process.

Protected Member Functions

std::string wait (int timeout)
 Call from parent(): wait for child to send a value or throw exception.
void ready (const std::string &value)
 Call from child(): Send a value to the parent.


Detailed Description

Like Fork but also allows the child to send a string message or throw an exception to the parent.

Definition at line 57 of file Fork.h.


Member Function Documentation

void qpid::sys::ForkWithMessage::fork (  )  [virtual]

Fork the process.

Calls parent() in the parent process, child() in the child.

Reimplemented from qpid::sys::Fork.

std::string qpid::sys::ForkWithMessage::wait ( int  timeout  )  [protected]

Call from parent(): wait for child to send a value or throw exception.

in seconds to wait for response.

Returns:
value passed by child to ready().

void qpid::sys::ForkWithMessage::ready ( const std::string &  value  )  [protected]

Call from child(): Send a value to the parent.

Parameters:
value returned by parent call to wait().


The documentation for this class was generated from the following file:

Generated on Thu Oct 16 13:38:40 2008 for Qpid by  doxygen 1.5.6