OSDN Git Service
(root)
/
mutilities
/
MUtilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82c81f5
)
Small optimization in Lazy<T> class.
author
LoRd_MuldeR
<mulder2@gmx.de>
Fri, 7 Dec 2018 13:14:26 +0000
(14:14 +0100)
committer
LoRd_MuldeR
<mulder2@gmx.de>
Fri, 7 Dec 2018 13:14:26 +0000
(14:14 +0100)
include/MUtils/Lazy.h
patch
|
blob
|
history
diff --git
a/include/MUtils/Lazy.h
b/include/MUtils/Lazy.h
index
a0031c4
..
267b751
100644
(file)
--- a/
include/MUtils/Lazy.h
+++ b/
include/MUtils/Lazy.h
@@
-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()))
{