]> code.delx.au - pulseaudio/commit
mainloop: Document need for mainloop lock around pa_mainloop_api_once
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 17 Jun 2013 12:37:42 +0000 (18:07 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 18 Jun 2013 02:50:05 +0000 (08:20 +0530)
commit9a0dd113429909ca998bc6970ae0c50e5aa138b0
tree5fd94f422bc38ebc8a290d4b76f3caf10575f487
parentb2792d783745ec726a00c4805402a77870549156
mainloop: Document need for mainloop lock around pa_mainloop_api_once

This needs us to expose a bit of implementation detail, but this seems
to be the cleanest way without an API change.

The specific problem is that pa_mainloop_api_once() needs to first
create a defer event and then set its destroy callback. If the defer
event is completed before the callback is set, an assert will be
trigerred.
src/pulse/mainloop-api.h