aboutsummaryrefslogtreecommitdiff
path: root/include/timer.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+1
|
* Move the TimerMap typedef into the private part of TimerManagerGravatar Attila Molnar2014-07-101-2/+2
|
* Remove current time parameter of the Timer constructorGravatar Attila Molnar2014-07-101-2/+1
|
* Move the definition of Timer::Timer() into the source file from the headerGravatar Attila Molnar2014-07-101-6/+1
| | | | Use initialization list
* Allow Timers to delete themselves in Tick()Gravatar Attila Molnar2014-01-301-0/+2
|
* Fix Doxygen comments.Gravatar Peter Powell2013-06-211-1/+0
|
* Timer changes and TimerManager enhancementsGravatar attilamolnar2013-04-211-31/+27
| | | | | | | Timer::Tick() now has a bool return value: if false is returned the timer is deleted using operator delete, otherwise, if it's a repeating timer then it's rescheduled (readded) Timers are removed from the TimerManager automatically at destruction Timers are now stored in a multimap instead of a sorted vector
* Tidy up source files:Gravatar Peter Powell2013-04-121-5/+1
| | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* Fix Doxygen syntax errors.Gravatar Peter Powell2012-07-051-5/+0
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+16
|
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-6/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind cleanup: finish destructor creationGravatar danieldg2009-09-021-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unneeded Extensible inheritance and remove "age" field from classbaseGravatar danieldg2009-09-021-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Clear up header insanityGravatar w00t2008-02-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7
* New timer code. This may be a tiny fraction slower (though I think it will ↵Gravatar w00t2008-01-131-19/+18
| | | | | | be acceptable given that we no longer need to tick old timers etc), but it is a lot simpler (about half the codesize of the old + no allocation of new timergroups etc), and should (I hope) always tick timers and never 'lose' them. Performs okay under 3500 connection attempts (0:00 CPU time :)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8708 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
* InspTimer -> TimerGravatar w00t2007-10-151-17/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8205 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+156
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-156/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* CommentsGravatar brain2007-06-171-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7382 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-2/+2
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* And make it compile. (whoops)Gravatar brain2007-02-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6562 e03df62e-2008-0410-955e-edbf42e46eb7
* timermanager never had a ServerInstance. Give it one so we can use ↵Gravatar brain2007-02-101-0/+5
| | | | | | InspIRCd::Time() rather than time() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6561 e03df62e-2008-0410-955e-edbf42e46eb7
* Add and properly test the ability for an InspTimer to DelTimer itself from ↵Gravatar brain2007-02-091-1/+6
| | | | | | | | | | | within its own Tick method. This wasnt supported before and would corrupt the iterator in the TickTimers() method of TimerManager. Non the less, peaveys new (perfectly sensible) fix broke it because i didnt document the caveat about DelTimer() :p This FIXES m_ident and possibly some other stuff. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6553 e03df62e-2008-0410-955e-edbf42e46eb7
* Comment on a lot of recently added stuff that wasnt properly documented ↵Gravatar brain2007-01-091-0/+24
| | | | | | (until now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6284 e03df62e-2008-0410-955e-edbf42e46eb7
* Someone forgot to make correct deps for timer.h. Fixed.Gravatar brain2007-01-091-0/+5
| | | | | | | Added InspTimer::CancelRepeat(), we can use this within the Tick method to cancel a repeat so that the timer is deleted after the tick, as DelTimer isnt safe within the Tick method git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6283 e03df62e-2008-0410-955e-edbf42e46eb7
* Add repeating timers, and make an hourly prune of the dns cache, otherwise a ↵Gravatar brain2007-01-081-2/+24
| | | | | | cache entry might not be cleared until a user with that ip comes back! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6264 e03df62e-2008-0410-955e-edbf42e46eb7
* And now, just to force you to recompile the *whole* ircd.. updated headers ↵Gravatar w00t2006-12-151-5/+2
| | | | | | on the headers. :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5998 e03df62e-2008-0410-955e-edbf42e46eb7
* Speaking of misleading comments, 'Delete and InspTImer' isn't particularly ↵Gravatar special2006-09-241-1/+1
| | | | | | descriptive git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5313 e03df62e-2008-0410-955e-edbf42e46eb7
* Add timeouts to the http module. Two seperate timeouts, 60 seconds to ↵Gravatar brain2006-09-151-0/+4
| | | | | | receive headers, and 60 seconds after receipt of headers and sending of page, in which to time out the connection if the client doesnt close() as it should git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5260 e03df62e-2008-0410-955e-edbf42e46eb7
* Document TimerManager classGravatar brain2006-08-111-1/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4899 e03df62e-2008-0410-955e-edbf42e46eb7
* Relocate timer stuff into TimerManager classGravatar brain2006-08-101-3/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4827 e03df62e-2008-0410-955e-edbf42e46eb7
* Made a load more stuff Extensible which might be of use to someoneGravatar brain2006-07-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4293 e03df62e-2008-0410-955e-edbf42e46eb7
* Route some more stuff through socket.h and hash_map.h. Add #define ↵Gravatar om2006-04-101-0/+4
| | | | | | protection to timer.h and remove some unneeded includes and externs from timer.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3869 e03df62e-2008-0410-955e-edbf42e46eb7
* Commented a lot of stuff that hasnt been commented since 1.0.2Gravatar brain2006-03-121-3/+21
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3695 e03df62e-2008-0410-955e-edbf42e46eb7
* Look-behind for missed timers up to 2 minutes (if your ircd has hung for 2 ↵Gravatar brain2006-02-231-0/+1
| | | | | | minutes, or your clock drift is > 2 mins, you have bigger fish to fry, like dead network or TS split) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3310 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved timer stuff from OnBackgroundTimer to InspTimer derivativeGravatar brain2006-02-231-2/+23
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3305 e03df62e-2008-0410-955e-edbf42e46eb7
* Incorporating InspTimer into safelist as a testGravatar brain2006-02-231-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3301 e03df62e-2008-0410-955e-edbf42e46eb7
* FixesGravatar brain2006-02-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3300 e03df62e-2008-0410-955e-edbf42e46eb7
* First revision of new timer code, not in the makefile yet (so it wont build ↵Gravatar brain2006-02-231-0/+15
till im done) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3297 e03df62e-2008-0410-955e-edbf42e46eb7