Mark Andrews
6125833e82
isc_timer_poke is thread specific
2002-09-09 06:01:06 +00:00
Michael Graff
371147fdc5
add isc_timer_gettype() (useful in debugging code) and a temporary hack of isc_timermgr_poke
2002-09-08 18:35:55 +00:00
Andreas Gustafsson
1f1d36a87b
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
2001-11-30 01:59:49 +00:00
Andreas Gustafsson
91cd0f93ad
sizeof style
2001-11-27 01:56:32 +00:00
Mark Andrews
9234d92d4e
1058. [func] Limited lifetime ticker timers are now available,
...
isc_timertype_limited.
2001-10-18 06:06:13 +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
Bob Halley
674dd7889b
convert to util.h; only set magic if ok; forgot detach if mutex init fails
1998-12-13 02:03:46 +00:00
Bob Halley
1633838b82
update copyrights
1998-12-12 20:48:14 +00:00
Bob Halley
d25afd60ee
include config.h
1998-12-12 19:25:20 +00:00
Bob Halley
6792dd6d22
conforming changes for new pool
1998-12-11 20:38:46 +00:00
Bob Halley
da4242bf62
replace unexpect.[ch] and fatal.[ch] with error.[ch]
1998-12-04 20:00:26 +00:00
Bob Halley
a2a072eb23
use proper isc result type
1998-10-26 23:08:23 +00:00
Bob Halley
5cc3e0c38f
opaque isc_time_t; add isc_interval_t; conditional WINAPI for run()
1998-10-23 22:59:44 +00:00
Bob Halley
6052dab738
update
1998-10-23 05:45:26 +00:00