]> code.delx.au - pulseaudio/commitdiff
mainloop-api: Improve pa_mainloop_api_once() documentation
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sat, 15 Mar 2014 07:52:07 +0000 (09:52 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sat, 15 Mar 2014 11:01:03 +0000 (13:01 +0200)
src/pulse/mainloop-api.h

index b4eccb1aec4783428678b6386b3e97634c87895f..d03e0e6c8ab4f5f058a8ba05ac2fae9726e613fc 100644 (file)
@@ -114,9 +114,11 @@ struct pa_mainloop_api {
     void (*quit)(pa_mainloop_api*a, int retval);
 };
 
-/** Run the specified callback function once from the main loop using an anonymous defer event. Note that this performs
- * multiple mainloop operations non-atomically. If, for example, you are using a \ref pa_threaded_mainloop, you will need to
- * take the mainloop lock before this call. */
+/** Run the specified callback function once from the main loop using an
+ * anonymous defer event. If the mainloop runs in a different thread, you need
+ * to follow the mainloop implementation's rules regarding how to safely create
+ * defer events. In particular, if you're using \ref pa_threaded_mainloop, you
+ * must lock the mainloop before calling this function. */
 void pa_mainloop_api_once(pa_mainloop_api*m, void (*callback)(pa_mainloop_api*m, void *userdata), void *userdata);
 
 PA_C_DECL_END