Insert compiler optimization barriers into methods MyBuffer::put() & MyBuffer::get()
This modification is required to force the compiler to increment the read/write location pointers _rloc and _wloc only after having read/written the data from/to the buffer.
This happened on my side on a NUCLEO_F401RE + X-NUCLEO-IDW01M1 using GCC_ARM toolchain (version 6.3.1 20170620 (release)).
Insert compiler optimization barriers into methods
MyBuffer::put()
&MyBuffer::get()
This modification is required to force the compiler to increment the read/write location pointers
_rloc
and_wloc
only after having read/written the data from/to the buffer. This happened on my side on a NUCLEO_F401RE + X-NUCLEO-IDW01M1 using GCC_ARM toolchain (version 6.3.1 20170620 (release)).cc @geky