summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2007-04-13 00:17:30 +0200
committerReinhard Nißl <rnissl@gmx.de>2007-04-13 00:17:30 +0200
commit0638ad373d88c3ed45273a505df56626daba19a0 (patch)
tree5df24fd7d6686f057a3fa90f486cae6ddd27a350 /lib
parentb4304f243c6006eec3ca4b4ce2b19cfca703861a (diff)
downloadxine-lib-0638ad373d88c3ed45273a505df56626daba19a0.tar.gz
xine-lib-0638ad373d88c3ed45273a505df56626daba19a0.tar.bz2
Provide ability to lock port rewiring.
The idea is to allow only a "single" frontend to rewire ports at a certain point in time. Regarding a stream, frontend_lock is used for example to allow only a single frontend to change the speed. Unfortunately, frontend_lock cannot be used as the rewire functions are not stream related. Therefore a new port_rewiring_lock was introduced and used at appropriate locations. When an arbitrary thread now holds the frontend_lock and the port_rewiring_lock, it is safe that acquiring a port ticket in functions like xine_get_current_frame() will never block the thread.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions