Small optimization in Lazy<T> class.
This commit is contained in:
parent
82c81f5c42
commit
305ac09077
@ -53,7 +53,7 @@ namespace MUtils
|
|||||||
T& operator*(void)
|
T& operator*(void)
|
||||||
{
|
{
|
||||||
T *value;
|
T *value;
|
||||||
while (!(value = m_value.fetchAndAddOrdered(0)))
|
while (!(value = m_value))
|
||||||
{
|
{
|
||||||
if (!(value = m_initializer()))
|
if (!(value = m_initializer()))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user