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

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

$
0
0
When they say "first write to a peripheral" and "last read of a peripheral" they mean that globally, not just within a single thread.
and similarly, the peripherals arent aware of cores
so globally includes all cores
The peripherals have no concept of software threads, so how are they to differentiate?
but linux will likely insert a insert a barrier every time does a thread switch within one core

Statistics: Posted by cleverca22 — Tue Jan 23, 2024 5:13 am



Viewing all articles
Browse latest Browse all 5349

Trending Articles