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: remove spin lock #316

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Conversation

hansieodendaal
Copy link
Contributor

@hansieodendaal hansieodendaal commented Feb 9, 2024

Description

  • Removed the spinlock in the update loop in tari-launchpad/libs/sdm/src/task.rs::update. Events are being processed correctly and this is not required.
  • Added a bunch of trace logs to monitor the continued operation.

Note: The spinlock was pointed out by @stringhandler.

Motivation and Context

The spin lock unnecessarily kept the system busy during shutdown.

How Has This Been Tested?

System-level testing:

  • Start-then-stop-when-fully-active of all components works fine.
  • Shutting down the application while all components are fully active works fine.

Removed spin lock in update loop. Events are being processed correctly and this is not required.
Added a bunch of trace logs to monitor the continued operation.
libs/sdm/src/task.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@brianp brianp left a comment

Choose a reason for hiding this comment

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

Only one small change, otherwise it looks good.

utAck

@CjS77
Copy link
Contributor

CjS77 commented Feb 9, 2024

LGTM

@brianp brianp merged commit e47acf3 into tari-project:main Feb 12, 2024
4 of 5 checks passed
@hansieodendaal hansieodendaal deleted the ho_spinlock branch March 18, 2024 15:28
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.

None yet

4 participants