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

Add Periodic Thread class and reduce YarpLoggerDevice latency #899

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

LoreMoretti
Copy link
Contributor

@LoreMoretti LoreMoretti commented Oct 4, 2024

This class manages the creation and execution of periodic threads.

User can define the tasks for their periodic thread just by inheriting from this class and overriding the threadInit and run function.

Indeed, this PR also changes the YarpLoggerDevice, which now inherits from BipedalLocomotion::System::PeriodicThread rather than yarp::os::PeriodicThread.

@LoreMoretti LoreMoretti changed the title Add Periodic Thread class Add Periodic Thread class and reduce YarpLoggerDevice latency Oct 8, 2024
@LoreMoretti
Copy link
Contributor Author

Also BipedalLocomotion::System::AdvanceableRunner could inherit from BipedalLocomotion::System::PeriodicThread. But, I think it is better to eventually implement it in a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant