template class Poco::ActiveRunnable

Overview

This class is used by ActiveMethod. Moreā€¦

#include <ActiveRunnable.h>

template <
    class ResultType,
    class ArgType,
    class OwnerType
    >
class ActiveRunnable: public Poco::ActiveRunnableBase
{
public:
    // typedefs

    typedef ResultType(OwnerType::* Callback)(const ArgType &);
    typedef ActiveResult<ResultType> ActiveResultType;

    // construction

    ActiveRunnable(
        OwnerType* pOwner,
        Callback method,
        const ArgType& arg,
        const ActiveResultType& result
        );

    // methods

    virtual
    void
    run();
};

Inherited Members

public:
    // typedefs

    typedef AutoPtr<ActiveRunnableBase> Ptr;

    // methods

    virtual
    void
    run() = 0;

    void
    duplicate() const;

    void
    release() const;

    int
    referenceCount() const;

Detailed Documentation

This class is used by ActiveMethod.

See the ActiveMethod class for more information.

Methods

virtual
void
run()

Do whatever the thread needs to do.

Must be overridden by subclasses.