Commit Graph
77 Commits
Author SHA1 Message Date
Mark Andrews a4c4295268 update copyright notice 2006-01-04 23:50:21 +00:00
Mark Andrews 8019162f81 1940. [bug] Fixed a number of error conditions reported by
Coverity.
2006-01-04 03:43:20 +00:00
Mark Andrews 7478344b24 update copyright notice 2005-10-27 00:27:30 +00:00
Mark Andrews 94a81187c8 fix isc_timer_gettype return type 2005-10-26 06:52:52 +00:00
Mark Andrews 347c832469 update copyrights 2004-03-08 09:05:15 +00:00
Mark Andrews cbdd3a318b update lib copyrights 2004-03-06 08:15:48 +00:00
Mark Andrews 1ed28495fe sync against trunc 2003-10-07 03:28:41 +00:00
Mark Andrews 57b54234cd sizeof style 2003-09-11 00:18:18 +00:00
Mark Andrews 4c98b4d5b2 pullup:
Rework previous slightly, to only signal if we were using WAITUNTIL() and we
actually have a due time
2003-08-21 02:15:50 +00:00
Mark Andrews 4bdd141eef pullup:
When scheduling a new timer, check to see if we missed our last wakeup
by more than 15 seconds.  If we have, SIGNAL().
2003-08-21 02:05:47 +00:00
Mark Andrews 013781e021 pullup:
add isc_timer_gettype() (useful in debugging code) and a temporary hack of isc_
timermgr_poke
2003-08-20 07:13:06 +00:00
Mark Andrews 9052beb238 pullup
Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is
not desirable
2003-08-11 05:28:23 +00:00
Mark Andrews 13dde62605 1058. [func] Limited lifetime ticker timers are now available,
isc_timertype_limited.
2003-08-06 06:18:07 +00:00
David Lawrence 92ef1a9b9d use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land 2001-06-04 19:33:39 +00:00
Brian Wellington 3a66efb0cb remove the completely unused timer->mctx field. 2001-01-27 02:44:07 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
David Lawrence 801dceea23 Revert my last change. It was stupid, which I if I had been thinking clearly
I would have seen *before* I commited anything.  So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.

(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better.  I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence bdcae3560b Only include isc/thread.h, isc/mutex.h and isc/condition.h if
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence 9cd6d409b7 first pass at using isc_msgcat_get for message strings in libisc 2000-12-06 00:30:32 +00:00
Mark Andrews 5e589b5356 Uninitalised link fixes, batch 1. 2000-10-20 02:21:58 +00:00
Brian Wellington 0d89afffb2 Make sure #else and #endif for ISC_PLATFORM_USETHREADS are marked as such. 2000-09-28 21:31:08 +00:00
Brian Wellington 8ec174ad4e Allow the timer code to run without threads. 2000-08-29 21:30:03 +00:00
Brian Wellington fa9a407180 Last set of DESTROYLOCK changes 2000-08-26 01:42:34 +00:00
David Lawrence 40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence 9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence 49dbdb0186 update_copyrights 2000-06-21 22:05:07 +00:00
Michael Graff fbcba391fa fix format argument 2000-06-19 22:23:05 +00:00
David Lawrence 87cafc5e70 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

The macro DE_CONST was added to isc/util.h to deal with a handful of very
special places where something is qualified as const but really needs to have
its const qualifier removed.

Also cleaned up a few places where variable names clashed with reserved
identifiers.  (Which mostly works fine, but strictly speaking is undefined
by the standard.)

Minor other ISC style cleanups.
2000-06-01 17:20:56 +00:00
Andreas Gustafsson e996ff2d5b print isc_time_t fields using %u, not %lu 2000-05-22 03:07:47 +00:00
David Lawrence 60e412971e isc_time_add now returns an isc_result_t, ensuring proper range of the
result of the addition.
2000-05-18 17:15:11 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence c403d3f7d6 130. [cleanup] <isc/condition.h> does not need <pthread.h> or
<isc/boolean.h>, and now includes <isc/types.h>
                        instead of <isc/time.h>.
(does not need pthread.h because it *does* need isc/mutex.h, which
will be guaranteed to provide pthread.h)
2000-04-28 18:58:40 +00:00
David Lawrence fc9e755ba3 <isc/task.h> does not need <isc/mem.h> or <isc/result.h>. 2000-04-28 04:26:08 +00:00
David Lawrence c23f524c07 include isc/task.h 2000-04-25 19:32:29 +00:00
Bob Halley f6c77dd407 Use memory context reference counting.
Timers now use the timer manager's mctx, not the task's.
2000-04-12 01:27:20 +00:00
Bob Halley ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Michael Graff 440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Bob Halley 67e33ba670 we were purging the wrong event ranges 1999-07-21 21:18:10 +00:00
Bob Halley 9db3eaed95 the event tag is now a void * 1999-07-10 00:55:07 +00:00
Bob Halley 94a5826150 do not get the current time for an inactive timer 1999-07-03 21:00:55 +00:00
Bob Halley d717d5600b event purging api change 1999-06-15 23:18:44 +00:00
Bob Halley 0f287538a5 use isc_time_now; allow default expires and interval 1999-06-12 01:13:22 +00:00
Bob Halley d13284da19 allow timer to be inactive; use isc_task_purgerange 1999-05-10 22:50:31 +00:00
Bob Halley 1edf93cbc2 a timer now uses the mctx of its task 1999-01-16 00:01:18 +00:00
Bob Halley eb5ae81b55 note 1999-01-15 02:14:55 +00:00
Bob Halley 2328307a8f use RUNTIME_CHECK instead of INSIST where appropriate 1999-01-06 20:02:52 +00:00
Bob Halley 8dcce6f922 change memctx to mem 1998-12-18 19:14:37 +00:00
Bob Halley 835e240716 The lock must be held when calling SIGNAL 1998-12-16 02:04:43 +00:00
Bob Halley 3740b569ae the great type change 1998-12-13 23:45:21 +00:00