diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-07 01:37:43 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-07 02:00:28 -0700 |
commit | 4602f4fd6e22c7ed7195d71b681214f3a9a53b02 (patch) | |
tree | 8945c89694468690a4010acdefa902218e500300 /m4/shout.m4 | |
parent | 9bda68824ebd1b87d5ab28802ab4c310bc9d148a (diff) | |
download | mpd-4602f4fd6e22c7ed7195d71b681214f3a9a53b02.tar.gz mpd-4602f4fd6e22c7ed7195d71b681214f3a9a53b02.tar.xz mpd-4602f4fd6e22c7ed7195d71b681214f3a9a53b02.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 'm4/shout.m4')
0 files changed, 0 insertions, 0 deletions