]> code.delx.au - pulseaudio/blobdiff - src/pulse/mainloop-api.h
mainloop: Document need for mainloop lock around pa_mainloop_api_once
[pulseaudio] / src / pulse / mainloop-api.h
index 018ae19b81bc2bd6596b15f3810335811dbd024f..e75496097d2ff403324ef5ce1e41e2e90eec3106 100644 (file)
@@ -114,7 +114,9 @@ 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. */
+/** 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 \pa_threaded_mainloop, you will need to
+ * take the mainloop lock before this call. */
 void pa_mainloop_api_once(pa_mainloop_api*m, void (*callback)(pa_mainloop_api*m, void *userdata), void *userdata);
 
 PA_C_DECL_END