Quantcast
Channel: Locks around memory manipulation via inline assembly - Stack Overflow
Browsing index pages (2 articles)

Locks around memory manipulation via inline assembly

I am new to the low level stuff so I am completely oblivious of what kind of problems you might face down there and I am not even sure if I understand the term "atomic" right. Right now I am trying to...

View Article


Answer by Peter Cordes for Locks around memory manipulation via inline assembly

I think a simple spinlock that doesn't have any of the really major / obvious performance problems on x86 is something like this. Of course a real mutex implementation would use a system call (like...

View Article

Browsing index pages (2 articles)


Latest Images