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

Bugfix: 时间轮调度任务存取并发问题 对应的issue: #2877 #3607

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szx1
Copy link

@szx1 szx1 commented Dec 28, 2024

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

The description of the PR:
对应的issue: #2877
image
将put&add操作使用ConcurrentHashMap的merge原子操作
image
避免这里的并发问题导致任务丢失

Other information:

@szx1 szx1 closed this Dec 28, 2024
@szx1 szx1 changed the title Bugfix: 时间轮调度任务存取并发问题 对应的issue: #2877修复时间轮线程remove和任务线程add的并发问题 Bugfix: 时间轮调度任务存取并发问题 对应的issue: #2877 Dec 28, 2024
@szx1 szx1 reopened this Dec 28, 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.

1 participant