What assembly instructions are available for creating a lightweight mutex on the same process.
I can use CriticalSection on Win32. But I was wondering if there where assembly instructions that where to accomplish the same thing as a CriticalSection but without the need of calling the API.
Also, How does one implement something similar to the InterlockedIncrement, InterlockedAcquire, etc?