Commit Graph
65 Commits
Author SHA1 Message Date
Automatic Updater 611c670c11 update copyright notice 2010-12-03 23:45:47 +00:00
Evan Hunt 94c1870f9a 2979. [bug] named could deadlock during shutdown if two
"rndc stop" commands were issued at the same
			time. [RT #22108]
2010-12-03 22:03:41 +00:00
Automatic Updater 99b63ca8e5 update copyright notice 2009-01-18 23:47:41 +00:00
Mark Andrews d7900926bf spelling 2009-01-18 23:25:18 +00:00
Automatic Updater ec5347e2c7 update copyright notice 2007-06-18 23:47:57 +00:00
Mark Andrews 96ea716328 2134. [func] Additional statistics support. [RT #16666] 2007-02-13 02:49:08 +00:00
Mark Andrews 00499ae65e update copyright notice 2007-01-12 00:14:51 +00:00
Michael Graff de4f679a17 revert changes accidently committed to mainline 2007-01-10 18:56:20 +00:00
Mark Andrews edf8e79280 update copyright notice 2007-01-04 00:01:13 +00:00
Michael Graff 69da4348da add some basic statistics to task.c 2007-01-03 20:23:46 +00:00
Mark Andrews 148f27aee6 update copyright notice 2006-12-22 01:59:44 +00:00
Mark Andrews 29747dfe5e 2123. [func] Use Doxygen to generate internal documention.
[RT #11398]
2006-12-22 01:46:19 +00:00
Mark Andrews 69fe9aaafd update copyright notice 2005-04-29 00:24:12 +00:00
Rob Austein ab023a6556 1851. [doc] Doxygen comment markup. [RT #11398] 2005-04-27 04:57:32 +00:00
Mark Andrews dafcb997e3 update copyright notice 2004-03-05 05:14:21 +00:00
Tatuya JINMEI 神明達哉 6da7c87a77 1527. [cleanup] Reduce the number of gettimeofday() calls without
losing necessary timer granularity.

(reviewed by marka and Kurt)
2003-10-25 00:09:14 +00:00
Andreas Gustafsson 02940eaf0f 736. [func] New functions isc_task_{begin,end}exclusive(). 2001-02-13 04:11:44 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +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
Andreas Gustafsson 97684ed87d new functions isc_task_getname() and isc_task_gettag(),
to be used for debugging
2000-07-26 17:11:14 +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
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
David Lawrence fc9e755ba3 <isc/task.h> does not need <isc/mem.h> or <isc/result.h>. 2000-04-28 04:26:08 +00:00
Bob Halley 64b1a68e10 isc_task_create() no longer takes an mctx.
isc_task_mem() has been eliminated.
Use memory context reference counting.
2000-04-12 01:34:16 +00:00
David Lawrence 0e766071d0 clarified requires/ensures for isc_task_detach and isc_task_sendanddetach 2000-03-18 00:41:27 +00:00
Bob Halley ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Bob Halley a790a11730 allow tasks to be named and tagged 2000-01-25 19:25:20 +00:00
Bob Halley e0d8e8073f If creating a task and the manager is exiting, return ISC_R_SHUTTINGDOWN 2000-01-17 23:41:33 +00:00
Andreas Gustafsson be3fa6d82f typo 1999-12-01 20:30:16 +00:00
Bob Halley 3bff571ab2 Simply task API:
Tasks now terminate when

		Any shutdown events have been posted

		There are no references

		The event queue is empty

	If a task has no references and the event queue
	is empty, then a shutdown will be triggered if
	it hasn't been already.

	allowdone and allowsend are gone

	sending events can no longer fail
1999-09-23 21:30:26 +00:00
Bob Halley 8a4f36567a add unsending and sendanddetach 1999-07-10 01:00:55 +00:00
Bob Halley 07697f1c52 tagged event support 1999-06-15 23:18:18 +00:00
Bob Halley 0941b4e809 add isc_task_purgeevent 1999-06-12 01:10:32 +00:00
Bob Halley 3f8744a28f support for unpurgable events 1999-06-09 23:25:50 +00:00
Bob Halley 9b27701a8d finish conversion to standard .h commenting conventions 1999-05-18 19:23:53 +00:00
Bob Halley 4f39360a7f Shutdown of a task now works as follows:
When isc_task_shutdown() is called, any shutdown events are posted
	and the task goes into shutting down state.  isc_task_onshutdown()
	may no longer be called.

	If the task allows transition to the done state (the default), then
	as soon as the task's event queue is empty the task will enter the
	done state.  Once the done state has been entered, events may no
	longer be posted (regardless of the allowsend state).  If transition
	to the done state is not allowed, then the task will continue to
	exist and be able to receive events.

Moved event support to event.[ch].
The final state of a task is now called "done" not "shutdown".
Created a flags variable instead of having separate booleans.
Added isc_task_allowdone() and isc_task_purgerange().
Minor tracing fixes.
1999-05-10 23:00:30 +00:00
Bob Halley b929562c6c start adding interface comments 1999-03-07 19:21:37 +00:00
Bob Halley 7aacbd685b C++ compatibility 1999-03-04 02:38:48 +00:00
Bob Halley 6a50a5b6dc per task mctx 1999-01-14 20:03:54 +00:00
Bob Halley 68109fb883 list macros now follow the naming convention 1999-01-09 00:20:27 +00:00
Bob Halley 8dcce6f922 change memctx to mem 1998-12-18 19:14:37 +00:00
Bob Halley 131b0092c6 Improvements to the task shutdown process:
A shutdown event specification is no longer part of the
	isc_task_create() API.

	Multiple shutdown events can be requested with isc_task_onshutdown().
	Shutdown events are posted LIFO.

	The ability to send events can be enabled and disabled with
	isc_task_allowsend().

	Event actions return void; the only way to shutdown a task is to
	call isc_task_shutdown().

	There are no implicit event discards anymore.  (There is no need for
	them, since event actions cannot request immediate shutdown anymore.)
1998-12-16 02:02:10 +00:00
Bob Halley 3740b569ae the great type change 1998-12-13 23:45:21 +00:00
Bob Halley 1633838b82 update copyrights 1998-12-12 20:48:14 +00:00
Bob Halley 6792dd6d22 conforming changes for new pool 1998-12-11 20:38:46 +00:00
Michael Graff a609982aa7 Small change to the isc_task_send() function: return ISC_R_SUCCESS if the
event was queued, return ISC_R_NORESOURCES if not.  The error return
needs to be something different.
1998-11-10 11:39:13 +00:00
Michael Graff 1edb223dd3 return the number of items purged 1998-11-06 01:44:44 +00:00
Bob Halley 5741be0b80 add event destructor 1998-11-03 19:05:12 +00:00