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

Added semaphore support for tx queue operations #50

Closed
wants to merge 1 commit into from

Conversation

cuav-chen2
Copy link

Use semaphore to ensure thread safety for operations on tx_queue

@cuav-chen2 cuav-chen2 force-pushed the tx_queue_sem branch 3 times, most recently from 03f9c62 to 4d35bd3 Compare August 15, 2023 00:29
@bugobliterator
Copy link
Collaborator

The recommendation here is to use canard C++ API for thread-safe application. You will need to have a WITH_SEMAPHORE define like we have in Ardupilot, and a typedef for Semaphore.

Can I ask which RTOS are you using, I will add an example for ChibiOS RTOS.

@cuav-chen2
Copy link
Author

The recommendation here is to use canard C++ API for thread-safe application. You will need to have a WITH_SEMAPHORE define like we have in Ardupilot, and a typedef for Semaphore.

Can I ask which RTOS are you using, I will add an example for ChibiOS RTOS.

OK. Thank you so much.

@cuav-chen2 cuav-chen2 closed this Sep 8, 2023
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.

2 participants