Page 1 of 1

Ringbuf safety across multiple cores

Posted: Thu Dec 05, 2019 8:39 am
by GreenGiant
Quick question; I notice that the ESP IDF ringbuf is thread safe. Is it also core safe; i.e. if you have two tasks, running on different cores that access the same ringbuf at the same time, will they be excluded? (I'm thinking pre-emption, etc?)
Just looking for some reassurance before using it in a home project.
Cheers

Re: Ringbuf safety across multiple cores

Posted: Thu Dec 05, 2019 8:44 am
by ESP_Sprite
Yes. In general as well as in esp-idf specifically, thread-safe means both for threads on the same core as well as concurrent threads on different cores.