bus: make the bus almost lockfree
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 28 Oct 2010 12:27:43 +0000 (13:27 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 16 Feb 2011 16:56:39 +0000 (17:56 +0100)
commit14d7db1b527b05f029819057aef5c123ac7e013d
treea68b98e068d66832ea331fd37a77cc0ff2fd7707
parent401d73df7f0382a77ad44d8d6a0cc25ec1c6e3d1
bus: make the bus almost lockfree

Use new GstPoll functionality to wakeup the mainloop.
Use an atomic queue on the writer side to post the messages.
The reader side it protected with the lock still because we don't want multiple
concurrent readers.
gst/gstbus.c
gst/gstbus.h