src/channel_ends.h File Reference


Detailed Description

Contains the header for the channel-end classes (Chanin, AltChanin and Chanout).


Namespaces

namespace  csp

Classes

class  csp::AltChanin< DATA_TYPE >
 This class is identical to Chanin except that it also supports ALTing. More...
class  csp::Chanin< DATA_TYPE >
 The reading end of a channel. More...
class  csp::Chanout< DATA_TYPE >
 The writing end of a channel. More...
class  csp::ScopedExtInput< DATA_TYPE >
 Provides an easy way to perform extended inputs using scope. More...

NoPoison

Returns a non-poisonable version of the given channel end.

This can be used to supply non-poisonable channel ends to processes, for example:

            One2AnyChannel<int> c;
            One2OneChannel<int> d;
            Run(new Id<int>(NoPoison(c.reader()),d.writer()));

If you call poison() on a non-poisonable channel-end, it does not poison the channel (i.e. it has no effect).

template<typename DATA_TYPE>
Chanout< DATA_TYPE > csp::NoPoison (const Chanout< DATA_TYPE > &out)
template<typename DATA_TYPE>
AltChanin< DATA_TYPE > csp::NoPoison (const AltChanin< DATA_TYPE > &in)
template<typename DATA_TYPE>
Chanin< DATA_TYPE > csp::NoPoison (const Chanin< DATA_TYPE > &in)


Generated on Mon Aug 20 12:24:28 2007 for C++CSP2 by  doxygen 1.4.7