Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

C/C++ • Re: why are memory barriers not used in projects like pigpio

$
0
0
but linux will likely insert a insert a barrier every time does a thread switch within one core
That's fair, and if you assume any interrupt handlers from the kernel drivers are also well behaved (with barriers on entry and exit), and assuming that the interrupt handler isn't doing anything that might contend with what you are doing with the peripherals, then adding barriers as per the datasheet might be sufficient.

Statistics: Posted by warthog618 — Tue Jan 23, 2024 6:57 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles