diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-05 00:29:30 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-05 00:29:30 -0700 |
commit | 117ed71c73b643cccfaf57d3b480c158c190f4e0 (patch) | |
tree | 3380fd00129c615b0efb6c591b2ee043c8a582f1 /src/tag_pool.c | |
parent | 3f29cbaf360c5e9542c7b9e6648626d6e0ea8b1e (diff) | |
parent | f0a68935f9da6a77cd4688fc5836b2ce8f058041 (diff) | |
download | mpd-117ed71c73b643cccfaf57d3b480c158c190f4e0.tar.gz mpd-117ed71c73b643cccfaf57d3b480c158c190f4e0.tar.xz mpd-117ed71c73b643cccfaf57d3b480c158c190f4e0.zip |
Merge branch 'ew/tag-threadsafe'
* ew/tag-threadsafe:
tag: lock all accesses to tag_pool
tag: introduce handy items_size() function
Diffstat (limited to 'src/tag_pool.c')
-rw-r--r-- | src/tag_pool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tag_pool.c b/src/tag_pool.c index 89efef1fc..d227a2988 100644 --- a/src/tag_pool.c +++ b/src/tag_pool.c @@ -19,6 +19,8 @@ #include "tag_pool.h" #include "utils.h" +pthread_mutex_t tag_pool_lock = PTHREAD_MUTEX_INITIALIZER; + #define NUM_SLOTS 4096 struct slot { |