Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#58: adding test cases for arc hashmap & expire value #219

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

raman4793
Copy link
Collaborator

No description provided.

radumarias
radumarias previously approved these changes Oct 12, 2024
@@ -90,10 +90,16 @@ impl<K: Eq + Hash, V> ArcHashMap<K, V> {
pub fn len(&self) -> usize {
self.map.read().expect("cannot obtain lock").len()
}

pub fn get_map(&self) -> &RwLock<HashMap<K, (Arc<V>, Arc<AtomicUsize>)>> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to expose the internal map?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh sorry, I didnt mean to commit that function. Just removed it

@raman4793 raman4793 changed the title #58: adding test cases for arc hashmap #58: adding test cases for arc hashmap & expire value Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants