Thread Channel (thchannel)
A ring buffer-based inter-thread communication channel that uses mutexes and semaphores to achieve thread-safe data transfer with timeout support, suitable for producer-consumer scenarios in multi-threaded environments.
Thread Work Queue (thworker)
An asynchronous task executor based on a background thread, maintaining an internal task queue. The worker thread is woken via a semaphore to execute submitted tasks one by one, suitable for offloading time-consuming operations to a background thread.