From 3c4de5b560691bb877d47f475932b3c8f5751b93 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Sep 2008 19:14:45 +0200 Subject: tag: lock all accesses to tag_pool The tag pool is a shared global resource that is infrequently modified. However, it can occasionally be modified by several threads, especially by the metadata_pipe for streaming metadata (both reading/writing). The bulk tag_item pool is NOT locked as currently only the update thread uses it. --- src/tag_pool.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tag_pool.h') diff --git a/src/tag_pool.h b/src/tag_pool.h index e19b2f4b4..d837d4446 100644 --- a/src/tag_pool.h +++ b/src/tag_pool.h @@ -20,6 +20,9 @@ #define TAG_POOL_H #include "tag.h" +#include "os_compat.h" + +extern pthread_mutex_t tag_pool_lock; struct tag_item; -- cgit v1.2.3