#include <channel_decls.h>
Inheritance diagram for Channel< T >:
Public Member Functions | |
Channel (ChannelManager &m) | |
Channel constructor. | |
void | send (T data) |
Sends a message to this channel. | |
T | receive () |
Receives the next (chronological) message from this channel. | |
bool | isempty () const |
Checks whether there are messages waiting to be delivered. |
They must be registered with a ChannelManager.
Channel< T >::Channel | ( | ChannelManager & | m | ) | [inline] |
void Channel< T >::send | ( | T | data | ) |
Sends a message to this channel.
Any microthread may invoke this method at any time.
data | is the message to be sent |
T Channel< T >::receive | ( | ) |
Receives the next (chronological) message from this channel.
Only the microthread owning the corresponding manager may invoke this method.
bool Channel< T >::isempty | ( | ) | const [inline] |
Checks whether there are messages waiting to be delivered.
This operation is not locked as it is used internally.