Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ISource Class

The ISource class is the interface for all source blocks. Source blocks propagate messages to ITarget blocks.

template<
   class _Type
>
class ISource;

_Type

The data type of the payload within the messages produced by the source block.

Public Typedefs

Name

Description

source_type

A type alias for _Type.

Public Constructors

Name

Description

ISource::~ISource Destructor

Destroys the ISource object.

Public Methods

Name

Description

ISource::accept Method

When overridden in a derived class, accepts a message that was offered by this ISource block, transferring ownership to the caller.

ISource::acquire_ref Method

When overridden in a derived class, acquires a reference count on this ISource block, to prevent deletion.

ISource::consume Method

When overridden in a derived class, consumes a message previously offered by this ISource block and successfully reserved by the target, transferring ownership to the caller.

ISource::link_target Method

When overridden in a derived class, links a target block to this ISource block.

ISource::release Method

When overridden in a derived class, releases a previous successful message reservation.

ISource::release_ref Method

When overridden in a derived class, releases a reference count on this ISource block.

ISource::reserve Method

When overridden in a derived class, reserves a message previously offered by this ISource block.

ISource::unlink_target Method

When overridden in a derived class, unlinks a target block from this ISource block, if found to be previously linked.

ISource::unlink_targets Method

When overridden in a derived class, unlinks all target blocks from this ISource block.

For more information, see Asynchronous Message Blocks.

Header: agents.h

Namespace: Concurrency

Community Additions

Show:
© 2015 Microsoft