Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
89cf988a
Commit
89cf988a
authored
3 years ago
by
Ansariel
Browse files
Options
Downloads
Patches
Plain Diff
BUG-230673: Add warning that LLDiskCache::purge() is also called from outside the main thread
parent
0e253cb9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llfilesystem/lldiskcache.cpp
+2
-0
2 additions, 0 deletions
indra/llfilesystem/lldiskcache.cpp
indra/llfilesystem/lldiskcache.h
+3
-0
3 additions, 0 deletions
indra/llfilesystem/lldiskcache.h
with
5 additions
and
0 deletions
indra/llfilesystem/lldiskcache.cpp
+
2
−
0
View file @
89cf988a
...
@@ -51,6 +51,8 @@ LLDiskCache::LLDiskCache(const std::string cache_dir,
...
@@ -51,6 +51,8 @@ LLDiskCache::LLDiskCache(const std::string cache_dir,
LLFile
::
mkdir
(
cache_dir
);
LLFile
::
mkdir
(
cache_dir
);
}
}
// WARNING: purge() is called by LLPurgeDiskCacheThread. As such it must
// NOT touch any LLDiskCache data without introducing and locking a mutex!
void
LLDiskCache
::
purge
()
void
LLDiskCache
::
purge
()
{
{
if
(
mEnableCacheDebugInfo
)
if
(
mEnableCacheDebugInfo
)
...
...
This diff is collapsed.
Click to expand it.
indra/llfilesystem/lldiskcache.h
+
3
−
0
View file @
89cf988a
...
@@ -118,6 +118,9 @@ class LLDiskCache :
...
@@ -118,6 +118,9 @@ class LLDiskCache :
/**
/**
* Purge the oldest items in the cache so that the combined size of all files
* Purge the oldest items in the cache so that the combined size of all files
* is no bigger than mMaxSizeBytes.
* 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
();
void
purge
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment