summaryrefslogtreecommitdiff
path: root/indra/llfilesystem/lldiskcache.h
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2021-05-17 09:49:32 +0200
committerAnsariel <ansariel.hiller@phoenixviewer.com>2021-05-17 09:49:32 +0200
commit89cf988aaf0de402641cd945e7e9ad5292bc78d6 (patch)
tree1166c1d56d8a39814261e1cdd812400d136e6cb1 /indra/llfilesystem/lldiskcache.h
parent0e253cb9098cb58b2f3528860a5fd9f00ec5af96 (diff)
BUG-230673: Add warning that LLDiskCache::purge() is also called from outside the main thread
Diffstat (limited to 'indra/llfilesystem/lldiskcache.h')
-rw-r--r--indra/llfilesystem/lldiskcache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llfilesystem/lldiskcache.h b/indra/llfilesystem/lldiskcache.h
index 867a80f332..7c5b798f7e 100644
--- a/indra/llfilesystem/lldiskcache.h
+++ b/indra/llfilesystem/lldiskcache.h
@@ -118,6 +118,9 @@ class LLDiskCache :
/**
* Purge the oldest items in the cache so that the combined size of all files
* is no bigger than mMaxSizeBytes.
+ *
+ * WARNING: purge() is called by LLPurgeDiskCacheThread. As such it must
+ * NOT touch any LLDiskCache data without introducing and locking a mutex!
*/
void purge();