next up previous contents index
Next: The class waitqueue Up: Datahandlers Previous: The class operation

The class transport

The class transport  represents the time neccesary to move data from one task to another task. The class transport has the following interface:

interface transport : public datahandler
{
public:
  transport();                                 // constructor

  void pass(data* d);                          // pass data on 
  virtual void next(datahandler* dh1, datahandler* dh2 = NULL);      
                                               // original to dh1, copy to dh2
};

To enable the transport to pass a copy of the original data the member next has been overridden. It is possible to specify two datahandlers to which the data should be passed. Datahandler dh1 will receive the original, dh2 will receive a copy. The member pass has been modified to take care, if necessary, of making the copy and passing both the data objects on to the next datahandlers.



A Eliëns
Mon Jun 1 11:51:50 MET DST 1998