ClanSoft logo
ClanSoft logo

    CL_TimerCallback::subscribe

Syntax

virtual void subscribe(
        int milliseconds,
        float tolerance,
        bool periodic,
        bool delete_pointer = false);

Parameters

milliseconds-Specifies the callback granularity, eg. with what intervals the callback function should be called.
tolerance-Denotes the callback tolerance relative to the callback granularity, eg. how important it is, that the callback be performed on time. 0 denotes zero tolerance, whereas 1 for instance means, that it's ok that the callback varies by as much as 1*'milliseconds' milliseconds.
periodic-Boolean indicating whether this is a "one-shot" callback, which should be called once only, or it is a periodic callback, which should be called until a call to unsubscribe.
delete_pointer-Indicates if the instanced callback class should be deleted upon program exit, or a call to unsubscribe.

Description

CL_TimerManager wrapper function, which does nothing else, than call the CL_TimerManagersubscribe with this as callback instance argument.


Back to index



This page was built using the Perceps documentation system.