Atomic operation

Aside from disable interrupt is there a way to perform atomic operation on
IO?
Something equivalent to the atomic_*()

  • Mario

Mario Charest <mcharest@clipzinformatic.com> wrote:


Aside from disable interrupt is there a way to perform atomic operation on
IO?
Something equivalent to the atomic_*()

I’m not sure how you could make an atomic IO operation without disabling interrupts.
Unless, you used spin locks and every interrupt handler would wait on those locks.

-Adam

“Operating System for Tech Supp” <os@qnx.com> wrote in message
news:9q2d6l$7ba$1@nntp.qnx.com

Mario Charest <> mcharest@clipzinformatic.com> > wrote:


Aside from disable interrupt is there a way to perform atomic operation
on
IO?
Something equivalent to the atomic_*()

I’m not sure how you could make an atomic IO operation without disabling
interrupts.
Unless, you used spin locks and every interrupt handler would wait on
those locks.

That’s what I though too, but wanted to double check.

Thanks

-Adam