]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More AsyncJob rules based on squid-dev reviews:
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 19 Jul 2010 16:10:25 +0000 (10:10 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 19 Jul 2010 16:10:25 +0000 (10:10 -0600)
- You must implement start() and doneAll() methods.
- In doneAll(), always call doneAll() of the parent.

src/base/AsyncJobs.dox

index 9cf5c3d5089da7ccb848d8530894bee1aa069cc9..296ed81f4d8048fef6dce10353655bc7d1750b95 100644 (file)
@@ -84,6 +84,12 @@ one parameter ("data") or two simple parameters.
 cleaning up your job. It does not matter whether the [current] parent
 swanSong() does nothing.
 
+- You must implement start() and doneAll() methods. These methods may be
+marked as pure virtual in future releases.
+
+- In doneAll(), always call doneAll() of the parent. If the parent is not
+done, you are not done. It does not matter whether the [current] parent
+doneAll() always returns true.
 
 - If a job does not have a doneAll() method implemented, it is probably
 buggy. Any job must know what it wants to accomplish. Please note that