3 ms·
That is a great way to implement a lock, but it won't be a spin lock (which is a good thing by the way). The wait function is a blocking call.
by Kranar 5y ago
That is a great way to implement a lock, but it won't be a spin lock (which is a good thing by the way). The wait function is a blocking call.