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

feat: support thread scope distributed lock #183

Closed
wants to merge 2 commits into from

Conversation

mattisonchao
Copy link
Member

@mattisonchao mattisonchao commented Sep 8, 2024

Motivation

The existing LightweightLock will throw IllegalLockStateExceptionexception when you invoke lock for existing locked lock by other thread. therefore, this PR is introducing a lock that support threads exclusive.

Modification

  • Rename LightweightLock to SharedSimpleLock
  • Add ThreadSimpleLock for supporting threads exclusive.

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM

@mattisonchao
Copy link
Member Author

moving to other implementation.

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.

3 participants