Skip to content

Conversation

@corhere
Copy link
Contributor

@corhere corhere commented May 22, 2025

No description provided.

Signed-off-by: Cory Snider <csnider@mirantis.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new RWMutexMap type that provides a convenient way to access per-key read–write locks and includes extensive tests and benchmarks to ensure proper behavior under concurrency.

  • Implements RWMutexMap for dynamic per-key locking.
  • Provides unit tests covering lock, unlock, read lock, and concurrent scenarios.
  • Adds benchmark tests for performance evaluation.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
rwmutexmap_test.go Adds tests and benchmark cases for the new RWMutexMap functionality.
rwmutexmap.go Implements the RWMutexMap and its associated locking methods.

@cpuguy83 cpuguy83 merged commit 4817df9 into moby:main May 23, 2025
4 checks passed
@corhere corhere deleted the rwmutex branch May 23, 2025 15:17
@thompson-shaun thompson-shaun moved this from New to Complete in 🔦 Maintainer spotlight May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants