Small optimization in Lazy<T> class.

This commit is contained in:
LoRd_MuldeR 2018-12-07 14:14:26 +01:00
parent 82c81f5c42
commit 305ac09077

View File

@ -53,7 +53,7 @@ namespace MUtils
T& operator*(void)
{
T *value;
while (!(value = m_value.fetchAndAddOrdered(0)))
while (!(value = m_value))
{
if (!(value = m_initializer()))
{