aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-07 01:37:43 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-07 02:00:28 -0700
commit4602f4fd6e22c7ed7195d71b681214f3a9a53b02 (patch)
tree8945c89694468690a4010acdefa902218e500300 /src/inputStream.h
parent9bda68824ebd1b87d5ab28802ab4c310bc9d148a (diff)
downloadmpd-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 'src/inputStream.h')
0 files changed, 0 insertions, 0 deletions