Commit Graph

63 Commits

Author SHA1 Message Date
Kim Woelders 5ce609cca7 Change formatting style
No tabs, more like K&R.
Also switch to indent 2.2.13.
2023-11-26 10:03:45 +01:00
Kim Woelders 6a0c30e77f timers: Properly fix timer lockup issue
Adding timers from within timer callback functions could cause lockups
and memory leaks.
2022-10-30 10:28:14 +01:00
Kim Woelders 286a815b92 timers: Fix potential lockup when switching desks fast
Not sure exactly why - probably some nested timer calls - but this seems
to fix the problem.
2022-10-28 22:30:34 +02:00
Kim Woelders 88dba1cfff Re-indent with indent-2.2.12 2020-01-23 21:30:02 +01:00
Kim Woelders e9c282c773 Forgot some 2019 2019-05-10 06:35:40 +02:00
Kim Woelders e05a7293c6 Fix timer havoc in obscure situations
Not exactly sure when, but timers were created with undefined again,
which could lead to trouble due to unintended timer deletion.
2019-04-25 09:06:06 +02:00
Kim Woelders e287b37e78 Switch to new list implementation.
Faster, less code, less memory usage.
Not that it matters much - mostly for fun.
2013-08-09 11:43:48 +02:00
Kim Woelders f4ef0bc889 Cosmetic change around TimersRunNextIn().
SVN revision: 83806
2013-02-10 09:59:25 +00:00
Kim Woelders 51a19d26e7 Introduce new animation engine.
Based on work by Daniel Manjarres.

One of the major changes is to eliminate the "TimedLoop" construction
where we have "local" animation loops, in which we don't pass through
the main event handler.

SVN revision: 80542
2012-12-09 10:03:07 +00:00
Kim Woelders f244c9a479 Debug tweaks.
SVN revision: 77011
2012-09-22 08:29:15 +00:00
Kim Woelders aa94533d5c Fetch time to next timer run after running idlers.
Idlers may change timers.

SVN revision: 73880
2012-07-15 16:17:13 +00:00
Kim Woelders a92c67d7cf Add some timer debug, cosmetic changes.
SVN revision: 73879
2012-07-15 16:17:11 +00:00
Kim Woelders 10f6a232d0 Move GetTimeMs/Us() to time.c.
SVN revision: 69545
2012-03-21 21:10:59 +00:00
Kim Woelders 8c2846c8c4 Set lower limit on time between sucessive animator runs.
Only run animators if at least 50% of cycle time has expired since last time.
Also add some debug stuff.

SVN revision: 60283
2011-06-13 16:29:02 +00:00
Kim Woelders 18399c1f12 Fix handling rescheduled timers that are already expired.
SVN revision: 56876
2011-02-09 21:08:20 +00:00
Kim Woelders 0b78fca099 Add missing break.
SVN revision: 56124
2011-01-15 07:45:36 +00:00
Kim Woelders a649a2e005 Use GetTimeMs/Us() in stead of GetTime().
SVN revision: 55892
2011-01-05 18:05:59 +00:00
Kim Woelders f0c0a4519c Change TimerAdd() and TimerSetInterval() time to ms.
SVN revision: 55891
2011-01-05 18:05:57 +00:00
Kim Woelders 53180ca139 Eliminate TimersRunExpired().
SVN revision: 55890
2011-01-05 18:05:54 +00:00
Kim Woelders be31bb694b Move timers to int/ms.
SVN revision: 55889
2011-01-05 18:05:52 +00:00
Kim Woelders 568ee2489f Add GetTimeMs/Us().
SVN revision: 55888
2011-01-05 18:05:50 +00:00
Kim Woelders 4c25a12232 Cosmetics.
SVN revision: 55887
2011-01-05 18:05:48 +00:00
Kim Woelders 24e0a0d7e8 Forgot some 2008->2009's.
SVN revision: 40605
2009-05-12 21:21:21 +00:00
Kim Woelders b21bb1985b Fix timer debug stuff.
SVN revision: 39622
2009-03-22 12:40:20 +00:00
Kim Woelders 94ba4c2acd Cleanups.
SVN revision: 38634
2009-01-18 15:35:35 +00:00
Kim Woelders 1dad1ef28f Simplify timers.
SVN revision: 34656
2008-05-24 18:13:17 +00:00
Kim Woelders c906498380 Idler/Animator cleanups.
SVN revision: 34531
2008-05-10 23:15:32 +00:00
Kim Woelders e7f01c2d6f Add -brs to indent profile.
SVN revision: 34096
2008-03-23 11:54:24 +00:00
Kim Woelders a39948076c Use ecore_list_for_each in stead of ECORE_LIST_FOR_EACH (faster).
SVN revision: 34095
2008-03-23 06:49:50 +00:00
Kim Woelders 0a05aafc82 Assume free(0) is ok (if not HAVE_FREE_NULL_BUG will have to be defined).
SVN revision: 33818
2008-02-23 12:09:38 +00:00
Kim Woelders 6457e35937 Use separate debug flags for timers and idlers.
SVN revision: 33622
2008-01-26 11:43:12 +00:00
Kim Woelders 6089e2ef04 Deactivate unused code, trivial cleanups.
SVN revision: 31626
2007-09-05 19:12:56 +00:00
Kim Woelders dd8a5138b2 Follow ecore_list name changes.
SVN revision: 30976
2007-07-25 20:02:57 +00:00
Kim Woelders 0963b81c9c Don't free data pointer on animator exit.
SVN revision: 28234
2007-02-04 01:03:06 +00:00
Kim Woelders f289c7d96f Emalloc -> EMALLOC.
SVN revision: 28190
2007-02-02 00:19:32 +00:00
Kim Woelders 3d0c5b8410 Tweak timer event handling (run all expired timers at once).
SVN revision: 28158
2007-01-29 01:26:12 +00:00
Kim Woelders b1f47c25a6 Add animators.
SVN revision: 28142
2007-01-28 04:59:46 +00:00
Kim Woelders f53600e1e8 Cleanups, enable compiling everything as if it were C++.
SVN revision: 28022
2007-01-17 01:10:44 +00:00
Kim Woelders 83bcbbaee1 2007.
SVN revision: 27952
2007-01-13 19:14:29 +00:00
Kim Woelders 63a8acc721 Split up, shuffle around, rename.
SVN revision: 27181
2006-11-19 21:55:52 +00:00
Kim Woelders 27050fe8cc Split off timers.h
SVN revision: 22161
2006-04-16 13:27:38 +00:00
Kim Woelders 05e7471a1a Introduce idlers.
SVN revision: 21980
2006-04-09 10:18:34 +00:00
Kim Woelders 2dd6d5f12b Another fix to avoid timer starvation by X events.
- Thanks to Mark Bowyer for help to sort this out.
Change timers to use absolute time.


SVN revision: 19657
2006-01-08 16:13:21 +00:00
Kim Woelders 056248c884 2006.
SVN revision: 19591
2006-01-07 07:20:58 +00:00
Kim Woelders 99d717e187 Copyright updates. More enlightenment->e16.
SVN revision: 13794
2005-03-19 16:40:18 +00:00
Kim Woelders f47609bda7 Fix menu segv. Eliminate GetWinXY/WH.
SVN revision: 13638
2005-03-06 21:29:46 +00:00
Kim Woelders 69b6ed3314 Bye bye EDBUG/EDBUG_RETURN.
SVN revision: 13097
2005-01-25 21:58:28 +00:00
Kim Woelders 3b1f6e7c72 Enable compiling with -Wwrite-strings (trivial fixups).
SVN revision: 9414
2004-03-21 01:39:40 +00:00
Kim Woelders f43c79641d Renamed duplicate to Estrdup, introduced Estrndup.
SVN revision: 9148
2004-02-28 15:14:02 +00:00
Kim Woelders 2328bcb7c9 2003 -> 2004.
SVN revision: 8569
2004-01-19 22:30:35 +00:00