struct CCL::Threading::IPeriodicItem

Overview

Item executed periodically by thread pool. More…

#include <ithreadpool.h>

struct IPeriodicItem: public CCL::IUnknown
{
    // methods

    virtual int64 CCL_API getExecutionTime () const = 0;
    virtual void CCL_API execute (int64 now) = 0;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Item executed periodically by thread pool.

Methods

virtual int64 CCL_API getExecutionTime () const = 0

Get next system time (in milliseconds) this item should be executed.

virtual void CCL_API execute (int64 now) = 0

Execute item, ‘now’ holds the current system time in milliseconds.