SimpleCanLib
SimpleCanLib copied to clipboard
Esp32-s3 version of ThreadSafeQueue.h
Hi,
Just a quick question why is the S3 version of this class checking for semaphores before accessing the queues. Aren't Freertos queues already thread safe? IIRC in Freertos, Semaphores themselves are Freertos Queues.
Well that's a good question. I had taken the code from somewhere else and it worked well, so I did not really question that part of it (I am not an expert on FreeRTOS). I did some research now and the result seems to confirm your point. With one of the next releases I will try without the semaphores. Thanks, for pointing this out!