mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
thread-mainloop: fix volatile use in example
In the example, drain_result is a volatile pointer to an int, not a regular pointer to a volatile int.
This commit is contained in:
parent
b667fb22e4
commit
df92274787
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ PA_C_DECL_BEGIN
|
||||||
* access this data safely, we must extend our example a bit:
|
* access this data safely, we must extend our example a bit:
|
||||||
*
|
*
|
||||||
* \code
|
* \code
|
||||||
* static volatile int *drain_result = NULL;
|
* static int * volatile drain_result = NULL;
|
||||||
*
|
*
|
||||||
* static void my_drain_callback(pa_stream*s, int success, void *userdata) {
|
* static void my_drain_callback(pa_stream*s, int success, void *userdata) {
|
||||||
* pa_threaded_mainloop *m;
|
* pa_threaded_mainloop *m;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue