Concurrency Namespace


Visual Studio 2010 - Visual C++
ISource Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The ISource class is the interface for all Source blocks. Source blocks have messages to pass to Target blocks.

template<
   class _Type
>
class ISource;
Parameters

_Type
Members

Public Typedefs

Name

Description

source_type

Public Constructors

Name

Description

ISource::~ISource Destructor

Destroys the source.

Public Methods

Name

Description

ISource::accept Method

Accepts an offered message by the source, transferring ownership to the caller.

ISource::acquire_ref Method

Acquire a reference count to prevent deletion. This method is called by a target that is being linked to the source during link_target.

ISource::consume Method

Consumes a message previously offered by the source and reserved by the target, transferring ownership to the caller.

ISource::link_target Method

Links a target to the source.

ISource::release Method

Releases a previous message reservation.

ISource::release_ref Method

Release the reference count. This method is called by a target that is being unlinked. The source block is allowed to release any resource reserved for the target.

ISource::reserve Method

Reserves a message previously offered by the source.

ISource::unlink_target Method

Unlinks a target from the source, if found to be previously linked.

ISource::unlink_targets Method

Unlinks all targets of the source block.

Protected Methods

Name

Description

ISource::_Invoke_link_source Method

Links this source to a target.

ISource::_Invoke_unlink_source Method

Unlinks this source from a target.

Remarks

For more information, see Asynchronous Message Blocks.

Inheritance Hierarchy

Concurrency::ISource<_Type>

Requirements

Header: agents.h

See Also

Reference

Page view tracker