Skip to content

Conversation

@acolomb
Copy link
Member

@acolomb acolomb commented Jul 15, 2025

Reduce the amount of code within the critical section holding the lock. Unpack and log first. Update timestamp and state while locked and notify condition waiters. Invoke callbacks after releasing the lock.

Based on the suggestion in #579 (comment), just without the added callback argument and without using a call() wrapper yet.

Reduce the amount of code within the critical section holding the
lock.  Unpack and log first.  Update timestamp and state while locked
and notify condition waiters.  Invoke callbacks after releasing the
lock.
@acolomb acolomb added this to the v3.0.0 milestone Jul 15, 2025
@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@acolomb acolomb linked an issue Jul 15, 2025 that may be closed by this pull request
@acolomb acolomb merged commit 54ac5c2 into canopen-python:master Sep 8, 2025
4 of 5 checks passed
@acolomb acolomb deleted the nmt-on-heartbeat-callback-later branch September 8, 2025 21:14
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.

Order of operations in NmtMaster.on_heartbeat

1 participant