Even more logging +2 - trying to determine crash on build server

This commit is contained in:
Jonathan Thomas
2016-09-08 15:10:58 -05:00
parent ee8ae814b8
commit 629d49c50c
2 changed files with 4 additions and 5 deletions

View File

@@ -310,12 +310,14 @@ long int CacheMemory::Count()
void CacheMemory::CleanUp()
{
cout << "CacheMemory::CleanUp" << endl;
// Create a scoped lock, to protect the cache from multiple threads
const GenericScopedLock<CriticalSection> lock(*cacheCriticalSection);
cout << " -- max_bytes: " << max_bytes << endl;
// Do we auto clean up?
if (max_bytes > 0)
{
// Create a scoped lock, to protect the cache from multiple threads
const GenericScopedLock<CriticalSection> lock(*cacheCriticalSection);
while (GetBytes() > max_bytes && frame_numbers.size() > 20)
{
// Get the oldest frame number.