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:
Tanu Kaskinen 2016-10-28 19:00:26 +03:00
parent b667fb22e4
commit df92274787

View file

@ -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;