3 ms·
> Using a compare-and-swap you would only need one byte to store your "once" object rather than a whole int. But after alignment requirements of anything aroun
by inetknght 3y ago
> Using a compare-and-swap you would only need one byte to store your "once" object rather than a whole int.
But after alignment requirements of anything around it, it will likely be the size of the platform's natural int anyway