aboutsummaryrefslogtreecommitdiff
path: root/src/timer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-2/+3
|
* Allow timers to not be restarted after changing the interval.Gravatar Sadie Powell2023-07-211-2/+5
| | | | This is useful if you're changing them from Tick.
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+1
| |
* | Assign more class members inline instead of in the constructor.Gravatar Sadie Powell2022-10-211-2/+1
| |
* | Only give timers a trigger time when they're actually registered.Gravatar Sadie Powell2022-05-171-3/+7
| |
* | Remove unused time_t field from the timer system.Gravatar Sadie Powell2021-11-051-4/+5
| | | | | | | | | | This is equivalent to calling InspIRCd::Now() and is only actually used in one place in modules.
* | Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-2/+2
| |
* | Migrate collections from insert to emplace.Gravatar Sadie Powell2021-04-181-1/+1
|/
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-2/+6
|
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-1/+1
|
* Remove current time parameter of the Timer constructorGravatar Attila Molnar2014-07-101-2/+2
|
* Move the definition of Timer::Timer() into the source file from the headerGravatar Attila Molnar2014-07-101-0/+7
| | | | Use initialization list
* Kill needless #includes in source filesGravatar Attila Molnar2014-06-141-1/+0
|
* Change allocation of InspIRCd::Timers to be physically part of the object ↵Gravatar Attila Molnar2014-03-151-3/+3
| | | | containing it
* Allow Timers to delete themselves in Tick()Gravatar Attila Molnar2014-01-301-2/+3
|
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
|
* Timer changes and TimerManager enhancementsGravatar attilamolnar2013-04-211-27/+26
| | | | | | | 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
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* ...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-1/+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/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 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
* Nuke trailing spacesGravatar peavey2009-02-141-3/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 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
* Remove last vestige of libircdfoo, by changing tag into a single ↵Gravatar w00t2008-07-291-1/+1
| | | | | | identifier marking object as requiring compilation into a .o (minor commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix timer crashes: relying on an iterator after adding to/resorting the ↵Gravatar w00t2008-02-141-2/+3
| | | | | | vector probably isn't bright git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8929 e03df62e-2008-0410-955e-edbf42e46eb7
* New timer code. This may be a tiny fraction slower (though I think it will ↵Gravatar w00t2008-01-131-94/+22
| | | | | | 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
* Honking huge commit. Removal of DELETE() template that never worked right anywayGravatar brain2007-11-041-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8527 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the need for a bunch of the hard coded arrays/hashes by scanning the ↵Gravatar brain2007-10-221-0/+2
| | | | | | src/ dir for tag comments, like in modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7
* InspTimer -> TimerGravatar w00t2007-10-151-4/+4
| | | | 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/+135
| | | | 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-135/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* timermanager never had a ServerInstance. Give it one so we can use ↵Gravatar brain2007-02-101-2/+2
| | | | | | InspIRCd::Time() rather than time() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6561 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove dup code by calling TickTimers in a loopGravatar brain2007-02-101-29/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6560 e03df62e-2008-0410-955e-edbf42e46eb7
* DELETE() on the timergroup in DelTimer (small memory leak)Gravatar brain2007-02-101-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6559 e03df62e-2008-0410-955e-edbf42e46eb7
* Add and properly test the ability for an InspTimer to DelTimer itself from ↵Gravatar brain2007-02-091-4/+38
| | | | | | | | | | | 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
* Add repeating timers, and make an hourly prune of the dns cache, otherwise a ↵Gravatar brain2007-01-081-6/+26
| | | | | | 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
* Jesus, look who's the commit whore today. More header updates, and removal ↵Gravatar w00t2006-12-151-6/+3
| | | | | | of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
* Add timeouts to the http module. Two seperate timeouts, 60 seconds to ↵Gravatar brain2006-09-151-0/+22
| | | | | | 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
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsGravatar brain2006-08-301-5/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* Relocate timer stuff into TimerManager classGravatar brain2006-08-101-8/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4827 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove an extern, partly because it's unused, partly because it then gets ↵Gravatar om2006-04-111-2/+1
| | | | | | shadowed by something else, but mostly because it confused the hell out of me :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3870 e03df62e-2008-0410-955e-edbf42e46eb7
* Route some more stuff through socket.h and hash_map.h. Add #define ↵Gravatar om2006-04-101-13/+3
| | | | | | 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
* Remove references to inspircd_io from these, stop configure making all the ↵Gravatar om2006-04-081-1/+0
| | | | | | modules depend on it too. And remove some more un-needed includes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3853 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some unused headers and unneeded castsGravatar om2006-04-081-15/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3846 e03df62e-2008-0410-955e-edbf42e46eb7