summaryrefslogtreecommitdiffstats
path: root/cc/resources/resource_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/resource_pool.h')
-rw-r--r--cc/resources/resource_pool.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index 102b242..e1ee35a 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -34,7 +34,10 @@ class CC_EXPORT ResourcePool {
size_t max_resource_count);
void ReduceResourceUsage();
- void CheckBusyResources();
+ // This might block if |wait_if_needed| is true and one of the currently
+ // busy resources has a read lock fence that needs to be waited upon before
+ // it can be locked for write again.
+ void CheckBusyResources(bool wait_if_needed);
size_t total_memory_usage_bytes() const { return memory_usage_bytes_; }
size_t acquired_memory_usage_bytes() const {