Skip to content

Commit

Permalink
Modified: Changed cache size to an atomic variable
Browse files Browse the repository at this point in the history
  • Loading branch information
s-bose7 committed Jun 21, 2024
1 parent 8a9bdbc commit 29a711e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/memcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MemCache {
// Maximum size of the cache.
unsigned int MAX_SIZE;
// Counter to track the cache size.
unsigned int curr_size;
atomic<unsigned int> curr_size;

/*
* Head of the Frequency List
Expand Down

0 comments on commit 29a711e

Please sign in to comment.