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

General • Re: Multicore access to global variables

$
0
0
The RP235x has mutex support in assembly, while RP2040 does not. That is technically unrelated to instruction interpretation.

I should also clarify a possible implication of my previous comment:
  • The consumers should be capable of reading the same value twice. The first time the value changes an action follows. The second, third, forth, etc no action follows.
  • This would imply the consumer thread is significantly faster than the producer thread.
Lockless ring buffers (two pointers as locks) do not always need to obey either of these. However frame buffer update flags should.

Statistics: Posted by dthacher — Tue Nov 05, 2024 4:48 am



Viewing all articles
Browse latest Browse all 3143

Trending Articles