ZFFramework
 
Loading...
Searching...
No Matches
ZFGlobalTimer.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFGlobalTimer_h_
7#define _ZFI_ZFGlobalTimer_h_
8
9#include "ZFTimer.h"
11
12// ============================================================
31 , ZFMP_IN(const ZFListener &, timerCallback)
32 , ZFMP_IN_OPT(ZFLevel, observerLevel, ZFLevelAppNormal)
33 )
36 , ZFMP_IN(const ZFListener &, timerCallback)
37 , ZFMP_IN_OPT(ZFLevel, observerLevel, ZFLevelAppNormal)
38 )
41 , ZFMP_IN(const ZFListener &, timerCallback)
42 )
45
46// ============================================================
51 , ZFMP_IN(zftimet const &, intervalDefault)
52 )
57 , ZFMP_IN(zftimet const &, interval)
58 )
59
60// ============================================================
72
74#endif // #ifndef _ZFI_ZFGlobalTimer_h_
75
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
_zft_zftimet zftimet
time unit, ensured at least 64 bit, ensured signed
Definition ZFCoreTypeDef_CoreType.h:203
zftimet const & ZFGlobalTimerIntervalDefault()
see ZFGlobalTimerAttach
void ZFGlobalTimerDetachAll()
see ZFGlobalTimerAttach
void ZFGlobalTimerAttach(const ZFListener &timerCallback, ZFLevel observerLevel=(ZFLevelAppNormal))
global timer util
void ZFGlobalTimerManualStepCancel()
see ZFGlobalTimerManualStep
zftimet const & ZFGlobalTimerInterval()
see ZFGlobalTimerAttach
void ZFGlobalTimerAttachOnce(const ZFListener &timerCallback, ZFLevel observerLevel=(ZFLevelAppNormal))
see ZFGlobalTimerAttach
void ZFGlobalTimerManualStep()
manual control global timer step
void ZFGlobalTimerDetach(const ZFListener &timerCallback)
see ZFGlobalTimerAttach
ZFLevel
level for logic which depends on order
Definition ZFLevel.h:17
@ ZFLevelAppNormal
app
Definition ZFLevel.h:26
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
timer utility
listener as ZFCallback, mostly used by ZFObject::observerNotify
Definition ZFObjectObserver.h:30