r9703: r9683@blu: tridge | 2005-08-27 18:56:05 +1000
authorAndrew Tridgell <tridge@samba.org>
Sun, 28 Aug 2005 02:37:27 +0000 (02:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:34:51 +0000 (13:34 -0500)
 added a comment about event_context_find()

source/lib/events/events.c

index b6ba79430c633438692f088f2e953912dc5ed758..4e6eeef78e62290fb90403a4860c90e06a5bd5f1 100644 (file)
@@ -158,6 +158,10 @@ int event_loop_wait(struct event_context *ev)
   find an event context that is a parent of the given memory context,
   or create a new event context as a child of the given context if
   none is found
   find an event context that is a parent of the given memory context,
   or create a new event context as a child of the given context if
   none is found
+
+  This should be used in preference to event_context_init() in places
+  where you would prefer to use the existing event context if possible
+  (which is most situations)
 */
 struct event_context *event_context_find(TALLOC_CTX *mem_ctx)
 {
 */
 struct event_context *event_context_find(TALLOC_CTX *mem_ctx)
 {