You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're evaluating the freertos-c++ lib for possible usage. Can you explain why Tasklet involves a Mutex? That doesn't seem to be the typical usage pattern in the underlying FreeRTOS C implementation.
The text was updated successfully, but these errors were encountered:
Both. If you are using the C++ wrappers and you decide you want to permanently delete a Tasklet object, then you should be calling the delete operator, either directly or indirectly (like when a local object goes out of scope). Just make sure you include a call to CheckForSafeDelete() in your destructor to prevent any weird race conditions. In that code I've leveraging the semaphore/mutex again to guarantee FreeRTOS doesn't try to run your tasklet code after you've deleted it.
We're evaluating the freertos-c++ lib for possible usage. Can you explain why Tasklet involves a Mutex? That doesn't seem to be the typical usage pattern in the underlying FreeRTOS C implementation.
The text was updated successfully, but these errors were encountered: