[PATCH] mainloop-api: Improve pa_mainloop_api_once() documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sounds way better

the \ref before pa_threaded_mainloop is gone; needed?

p.

> ---
>  src/pulse/mainloop-api.h | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/src/pulse/mainloop-api.h b/src/pulse/mainloop-api.h
> index b4eccb1..2e3e95e 100644
> --- a/src/pulse/mainloop-api.h
> +++ b/src/pulse/mainloop-api.h
> @@ -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 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
> 

-- 

Peter Meerwald
+43-664-2444418 (mobile)


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux