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 …

Implementing an Asynchronous Dispatch Queue with ThreadX

I previously introduced the concept of dispatch queues and walked through the creation of a simple C++ dispatch queue implementation. The original dispatch queue example is implemented using std::mutex, std::thread, and std::condition_variable. Today I’d like to demonstrate the creation of a dispatch queue using ThreadX RTOS primitives instead of the C++ builtin types. We’ll start …