diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-13 09:55:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-13 09:55:07 +0200 |
commit | 313405edb6bcd83d0a45338d8419fb7065cb565b (patch) | |
tree | f371afc72e6233a433f9cd527271a2cceec6a26d /src/ls.c | |
parent | 3035a3303d8b5696542012e0e05b75daf9601f9b (diff) | |
download | mpd-313405edb6bcd83d0a45338d8419fb7065cb565b.tar.gz mpd-313405edb6bcd83d0a45338d8419fb7065cb565b.tar.xz mpd-313405edb6bcd83d0a45338d8419fb7065cb565b.zip |
songvec: avoid holding nr_lock during free(3)
We only need to lock sv->nr changes to prevent traversals ( why
it's called "nr_lock"). free(3) is a "slow" function on my
system; so we can avoid unnecessarily holding a lock long for
longer than needed.
Diffstat (limited to 'src/ls.c')
0 files changed, 0 insertions, 0 deletions