-->
Page 1 of 1

Are there any available atomic operations?

PostPosted: Fri Feb 02, 2018 6:49 am
by lpares12
Hi,

I was just wondering if there are any available atomic operations like the typicial test_and_set() or test_and_increment() or any similar ones.

Would like to update a variable making sure no interrupts or any other thing will happen in the middle of the operation but I can't find anything in the sdk documentation of the non-os-sdk.

Thanks!

Re: Are there any available atomic operations?

PostPosted: Fri Sep 07, 2018 3:04 am
by eriksl
I don't recall having seen them in the xtensa ISA document.

Having said that, what do you need it for? If you're using the RTOS SDK, I guess the RTOS SDK itself will hand the proper tools for task synchronisation. In the NON_OS SDK, you won't need, your code will be interrupted by interrupts handlers only.