Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
brinkqiang committed May 31, 2021
1 parent 215126e commit 0df4eee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
7 changes: 5 additions & 2 deletions include/dmtimernode.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ class CDMTimerNode :
void CopyFrom( const CDMTimerNode& oNode );

bool SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse, DMFunction fFun);
bool SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse, DMFunction fFun,
bool SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse, uint64_t qwFirst,
DMFunction fFun);

bool SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse,
uint64_t qwFirst, const dm::any& oAny,
bool bExact = false);
bool bExact, DMFunction fFun);

bool SetTimer(uint64_t qwIDEvent, uint64_t qwElapse);

Expand Down
12 changes: 9 additions & 3 deletions src/dmtimernode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,18 @@ bool CDMTimerNode::SetTimer(uint64_t qwIDEvent, uint64_t qwElapse,
bool CDMTimerNode::SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse,
DMFunction fFun)
{
return SetTimerEx(qwIDEvent, qwElapse, fFun, qwElapse, dm::any(), false);
return SetTimerEx(qwIDEvent, qwElapse, qwElapse, dm::any(), false, fFun);
}

bool CDMTimerNode::SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse,
DMFunction fFun, uint64_t qwFirst, const dm::any& oAny,
bool bExact /*= false*/)
uint64_t qwFirst, DMFunction fFun)
{
return SetTimerEx(qwIDEvent, qwElapse, qwFirst, dm::any(), false, fFun);
}

bool CDMTimerNode::SetTimerEx(uint64_t qwIDEvent, uint64_t qwElapse,
uint64_t qwFirst, const dm::any& oAny,
bool bExact, DMFunction fFun)
{
CDMTimerElement* poNewTimer = CDMTimerModule::Instance()->FetchElement();

Expand Down

0 comments on commit 0df4eee

Please sign in to comment.