• Eric Wong's avatar
    songvec: lock traversals for thread-safe updates/reads · 45334a23
    Eric Wong authored
    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.
    45334a23
songvec.c 2.13 KB