-->
Page 1 of 2

Mutex / semaphores

PostPosted: Thu Apr 16, 2015 3:13 am
by rab
Do they exist? I'm getting race conditions and I can't find a mutex api in the sdk. Am I missing something obvious?

Re: Mutex / semaphores

PostPosted: Thu Apr 16, 2015 11:59 am
by ttabbal
The IOT SDK uses FreeRTOS, so this might help.

http://www.freertos.org/a00113.html

Re: Mutex / semaphores

PostPosted: Thu Apr 16, 2015 3:56 pm
by rab
Thanks, looks like FreeRTOS supports them, but no sign that esp8266 does. Those api names don't appear in any of the sdk libs, and greping the whole sets gives no hits for mutex, sem, notify, etc.

Re: Mutex / semaphores

PostPosted: Thu Apr 16, 2015 4:23 pm
by ttabbal
Are you using the RTOS SDK? They are there...

https://github.com/espressif/esp_iot_rt ... s/semphr.h