aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Timer.hh
AgeCommit message (Collapse)AuthorFilesLines
2013-01-15Simplifies and fix bugs in FbTk::TimerMathias Gumz1-3/+2
* Calling Timer::setTimeout() from within Timer::start() might lead to ugly behavior (as experienced in bugs #3590078, #3600143, etc; see commit 4d307dcd10af9d817ff5c05fc40ae7487564cb31, fixes the problem partially). * Stop a timer first, then call the handler (via Timer::fireTimeout()). A given handler might call Timer::start() again, which (re)adds the Timer to the control list .. the following Timer::stop() would remove it again. * Use 'm_start' as indicator if timer is running. * Move the (now quite short) code of ::addTimer / ::removeTimer into the Timer::start() and Timer::stop() functions.
2012-09-14Fix regression: switch back to microseconds for DelayCmdMathias Gumz1-3/+7
2012-08-28changed timing functions to use a monotonic increasing clockMathias Gumz1-43/+18
gettimeofday() is subject to be changed on daylight-saving or to ntp-related (think leap-seconds). even worse, it is subject to be changed BACK in time. this is hard to fix correctly (see commit 45726d3016e and bug #3560509). it is irrelevant for timers to know the nano-seconds since the epoch anyways.
2011-09-14Upgrade FbTk::Timer so it can take an arbitrary functor as a parameterPavel Labath1-0/+14
2011-09-14FbTk::Timer accepts Slots instead of Commands as the former are more generalPavel Labath1-4/+4
2010-09-09simpler to use FbTk/Timer apiMathias Gumz1-0/+1
2010-05-06compile fix: FD_ZERO (sys/select.h) on solaris wants to use memset(); closes ↵Mathias Gumz1-1/+0
#2997117
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-6/+6
ObjectRegistry
2007-12-29'inline' in class declaration is implicitly inlineMathias Gumz1-5/+5
2007-12-28moved DelayedCmd from Screen.cc to FbTk/Timer.cc, added it to the keys fileMark Tiefenbruck1-3/+13
2007-04-17basicly cosmetic changes, patch by slava semushinmathias1-6/+5
2006-06-19fix timer issues (esp clock not updating on multiple screens)simonb1-6/+8
2006-04-18don't check the clock so often...simonb1-2/+6
2005-01-24fix to solve compileproblems under freebsd4mathias1-1/+1
2005-01-24copyright datemathias1-1/+1
2004-12-18cosmetic, double #include of the same headermathias1-1/+0
2004-08-31add autoconf check for std c++ headersrathnor1-1/+5
2003-12-16fixed some icc warningsfluxgen1-1/+1
2003-10-05fix reading of auto raise delayrathnor1-1/+1
2003-08-11executing a command on timeout instead of calling a TimeoutHandlerfluxgen1-19/+14
2003-02-15added a few headersfluxgen1-0/+14
2003-01-09moved from fluxbox to fbtkfluxgen1-0/+96