Many architecture offer atomic instruction like compare and swap, test and set....
But I didn't find any atomic operation in nuttx kernel except atomic testing.
Is there any reason so we don't use them?
Because recently I want to optimize fair spinlock #10605 with lock-free skill.
But the basic requirements are atomic instruction.
Many architecture offer atomic instruction like compare and swap, test and set....
But I didn't find any atomic operation in nuttx kernel except atomic testing.
Is there any reason so we don't use them?
Because recently I want to optimize fair spinlock #10605 with lock-free skill.
But the basic requirements are atomic instruction.