diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-07 22:07:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-07 22:07:34 +0200 |
commit | 45334a23e18da4928f53ccb9ecc7afd5f7eca28e (patch) | |
tree | dba88e561ff5e5989a5aa3e51720f2c273f5f6ab /src/main.c | |
parent | bb04c6342e692b39d04126940570a5ade9ca371a (diff) | |
download | mpd-45334a23e18da4928f53ccb9ecc7afd5f7eca28e.tar.gz mpd-45334a23e18da4928f53ccb9ecc7afd5f7eca28e.tar.xz mpd-45334a23e18da4928f53ccb9ecc7afd5f7eca28e.zip |
songvec: lock traversals for thread-safe updates/reads
Only one lock is used for all songvec traversals since
they're rarely changed. Also, minimize lock time and
release it before calling iterator functions since they
may block (updateSongInfo => stat/open/seek/read).
This lock only protects songvecs (and all of them) during
traversals; not the individual song structures themselves.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions