aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-07 22:07:34 +0200
committerMax Kellermann <max@duempel.org>2008-10-07 22:07:34 +0200
commit45334a23e18da4928f53ccb9ecc7afd5f7eca28e (patch)
treedba88e561ff5e5989a5aa3e51720f2c273f5f6ab /src/dbUtils.h
parentbb04c6342e692b39d04126940570a5ade9ca371a (diff)
downloadmpd-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 'src/dbUtils.h')
0 files changed, 0 insertions, 0 deletions