Project

General

Profile

Bug #4116

Reset of WTimer interval on stop and start

Added by Markus Wolters over 7 years ago. Updated over 7 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
-
Start date:
05/27/2015
Due date:
% Done:

0%

Estimated time:

Description

I try to reset the WTimer interval with a combination of stop() and start(), but it continues on the previously set interval. If elapsed, the timeout is resetted as expected, but never before.

@

init:

resetTimer = new Wt::WTimer();

resetTimer->setInterval(10000);

resetTimer->timeout().connect(this, &StatusView::onResetTimeout);

resetTimer->setSingleShot(true);

resetTimer->start();

@

@

event method:

resetTimer->stop();

doMyStuff();

resetTimer->start();

@

Also available in: Atom PDF