Modification of the thread-mainloop doc to ensure that nobody frees the api as it is owned by the loop.

This commit is contained in:
Xabier Rodriguez Calvar 2009-06-30 18:23:17 +02:00 committed by Lennart Poettering
parent 65f86ef7d4
commit 52e5d4b1d2

View file

@ -299,7 +299,9 @@ void pa_threaded_mainloop_accept(pa_threaded_mainloop *m);
/** Return the return value as specified with the main loop's quit() routine. */ /** Return the return value as specified with the main loop's quit() routine. */
int pa_threaded_mainloop_get_retval(pa_threaded_mainloop *m); int pa_threaded_mainloop_get_retval(pa_threaded_mainloop *m);
/** Return the abstract main loop abstraction layer vtable for this main loop. */ /** Return the abstract main loop abstraction layer vtable for this
main loop. No need of freeing the API as it is owned by the loop
and it is destroyed when this dies */
pa_mainloop_api* pa_threaded_mainloop_get_api(pa_threaded_mainloop*m); pa_mainloop_api* pa_threaded_mainloop_get_api(pa_threaded_mainloop*m);
/** Returns non-zero when called from withing the event loop thread. \since 0.9.7 */ /** Returns non-zero when called from withing the event loop thread. \since 0.9.7 */