]> xenbits.xensource.com Git - libvirt.git/commitdiff
Document that ff callbacks need to be invoked from a clean stack.
authorGuido Günther <agx@sigxcpu.org>
Mon, 3 Oct 2011 20:24:13 +0000 (22:24 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 4 Oct 2011 18:29:46 +0000 (20:29 +0200)
Also fix a typo.

include/libvirt/libvirt.h.in

index a3c581db972f0321c6d1a78cf9a61f5741faebe4..bd7a0f7925b4f1ab5816bd6fc021890eb21e1cf8 100644 (file)
@@ -2243,13 +2243,15 @@ typedef void (*virEventHandleCallback)(int watch, int fd, int events, void *opaq
  * @opaque: user data to pass to the callback
  * @ff: the callback invoked to free opaque data blob
  *
- * Part of the EventImpl, this callback Adds a file handle callback to
+ * Part of the EventImpl, this callback adds a file handle callback to
  * listen for specific events. The same file handle can be registered
  * multiple times provided the requested event sets are non-overlapping
  *
  * If the opaque user data requires free'ing when the handle
  * is unregistered, then a 2nd callback can be supplied for
- * this purpose.
+ * this purpose. This callback needs to be invoked from a clean stack.
+ * If 'ff' callbacks are invoked directly from the virEventRemoveHandleFunc
+ * they will likely deadlock in libvirt.
  *
  * Returns a handle watch number to be used for updating
  * and unregistering for events