Poll binary mutex

The documentation says that is possible to poll the state of a semaphore: “A block time of zero can be used to poll the semaphore” in the xSemaphoreTake section.
I have a hard time making this work.
Polling a semaphore should not change it in any way, or am I confused by the idea of “polling” and “peeking”? I can see in semphr.h that the xSemaphore cannot set the “just peeking” boolean to true. #define xSemaphoreTake( xSemaphore, xBlockTime ) xQueueGenericReceive( ( xQueueHandle ) xSemaphore, NULL, xBlockTime, pdFALSE ) Please enlighten me… BR,
Jonas, DK

Poll binary mutex

Polling the semaphore will change its state if the semaphore is available, yes you are confused between polling and peeking.

Poll binary mutex

Thank you for a quick reply :-)
BR, Jonas