summaryrefslogtreecommitdiff
path: root/lib/common/Timer.cpp
Commit message (Collapse)AuthorAge
* Fix -Wundefined-bool-conversion compile failure of master branchChris Wilson2017-10-16
| | | | | | | | | | Master build fails with: lib/common/Timer.cpp:171:10: error: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Werror,-Wundefined-bool-conversion]. Cannot get regtests to pass on this feature branch without fixing this. Also remove unused code from Timers.
* Catch setitimer() failure, throw exceptions with descriptive messages in ↵Chris Wilson2015-04-06
| | | | Timer.cpp.
* Refactor Timer reschedule to avoid second scan over timer list.Chris Wilson2014-09-04
| | | | Merged back changes from the test refactor branch to reduce diffs.
* Backport Timers::Cleanup that's safe to use in test cleanup.Chris Wilson2014-09-04
| | | | | | | | | | Allows it not to throw an exception if timers weren't initialised when cleanup was requested. Normally we want an exception thrown, but not while we're cleaning up a test that might have failed with timers uninitialised. More timers fixes after cleanup no-exception option. Merged back changes from the test refactor branch to reduce diffs.
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Use more efficient direct reset of Timers instead of assignment.Chris Wilson2012-11-17
|
* Fix timer miscalculation on Windows.Chris Wilson2012-11-17
|
* Fix incorrect logging of timer assignment, and format expiry time as a human ↵Chris Wilson2012-11-07
| | | | time.
* Refactor and improve timer trace logging, fix subsecond formatting error.Chris Wilson2012-11-07
|
* Convert FORMAT_MICROSECONDS into a global utility macro.Chris Wilson2012-11-06
|
* Add experimental "TCP Nice" mode, disabled by default.Chris Wilson2012-02-12
|
* Fix potential conflict between WINVERs in Timers.Chris Wilson2011-08-28
|
* Add date to file logger, as requested by Kenny Millington.Chris Wilson2009-03-29
|
* Switch to C++ include file names.Chris Wilson2009-03-24
|
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Replace timer name when assigning from another timer.Chris Wilson2008-09-26
|
* New timer implementation using TimerQueue on Windows to avoid the needChris Wilson2008-07-27
| | | | | to create and manage a separate thread ourselves.
* Don't log our own timestamp now that Logging can do it for us withChris Wilson2007-12-15
| | | | | microsecond precision.
* Don't crash when trying to cleanup timers a second time (or if neverChris Wilson2007-12-02
| | | | | initialised) in release mode.
* sigemptyset() is a macro on OSX 10.3, so don't prepend ::Chris Wilson2007-11-03
|
* Bite the bullet and use sigaction() instead, since [1803] shows thatChris Wilson2007-10-22
| | | | | | signal() works badly on SuckOS, and James reports that BSD doesn't have sigset().
* Make detailed timer debugging work on Windows as well.Chris Wilson2007-10-17
| | | | | | | Add a couple of macros to clean up the code. (merges [1857])
* Use sigset() instead of signal() to ensure that SysV systems (like Solaris)Chris Wilson2007-09-01
| | | | | will not clear our signal handler after firing it.
* Compile fix to [1448] (refs #3)Chris Wilson2007-03-24
|
* Use logging framework to remove timer noise for those who don't want it.Chris Wilson2007-03-24
| | | | | (refs #3, merges [1445])
* Win32 compile fixes (no gettimeofday(), no signal()) (refs #3)Chris Wilson2007-03-10
|
* Throw an assertion error if a NULL timer is added (refs #3, merges [1367])Chris Wilson2007-03-10
|
* Don't do things with essential side effects inside ASSERT() macros Chris Wilson2007-01-14
| | | | | (refs #3, refs #9)
* - Make sure timer is stopped before removing signal handler, otherwiseChris Wilson2007-01-14
| | | | | SIGALRM will kill us.
* Fix more deadlocks by minimising the amount of stuff that the signalChris Wilson2006-12-13
| | | | | handler does. (refs #3, refs #9)
* Fixed a race condition caused by rescheduling in signal handler (refs Chris Wilson2006-12-03
| | | | | #3, refs #9)
* Added debug tracing code for timers.Chris Wilson2006-11-28
|
* * Fix timer expiry calculation when timers expire in the pastChris Wilson2006-11-26
| | | | | * Fix handling of timers which never expire (zero deadline) (refs #9)
* Use a static pointer rather than a static object, to allow it to be Chris Wilson2006-11-13
| | | | | freed in Timers::Cleanup, removing a reported memory leak (refs #9)
* Added generic timer support classChris Wilson2006-11-06