Continue reading "Refactoring the ThreadX Dispatch Queue To Use std::mutex"
Refactoring the ThreadX Dispatch Queue To Use std::mutex
Now that we've implemented std::mutex for an RTOS, let's refactor a library using RTOS-specific calls so that it uses std:mutex instead. Since we have a ThreadX implementation for std::mutex, let's update our ThreadX-based dispatch queue. Moving to std::mutex will result in a simpler code structure. We still need to port std::thread and std::condition_variable to achieve …