diff --git a/docs/d0/dce/class_m_utils_1_1_lazy.html b/docs/d0/dce/class_m_utils_1_1_lazy.html
index e263478..cba1339 100644
--- a/docs/d0/dce/class_m_utils_1_1_lazy.html
+++ b/docs/d0/dce/class_m_utils_1_1_lazy.html
@@ -65,6 +65,7 @@ $(function() {
-
38 MUTILS_API
static const quint32 &lib_version_major(
void);
39 MUTILS_API
static const quint32 &lib_version_minor(
void);
42 MUTILS_API
static const QDate lib_build_date(
void);
43 MUTILS_API
static const QTime lib_build_time(
void);
46 MUTILS_API
static const QDate app_build_date(
const char *
const date_str = build_date_raw());
47 MUTILS_API
static const QTime app_build_time(
const char *
const time_str = build_time_raw());
50 static const char *
const compiler_version(
void)
52 static const char *
const COMPILER_VERS =
53 #if defined(__INTEL_COMPILER) 54 #if (__INTEL_COMPILER >= 1500) 55 "ICL 15." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
56 #elif (__INTEL_COMPILER >= 1400) 57 "ICL 14." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
58 #elif (__INTEL_COMPILER >= 1300) 59 "ICL 13." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
60 #elif (__INTEL_COMPILER >= 1200) 61 "ICL 12." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
62 #elif (__INTEL_COMPILER >= 1100) 64 #elif (__INTEL_COMPILER >= 1000) 67 #error Compiler is not supported! 69 #elif defined(_MSC_VER) 70 #if (_MSC_VER == 1915) 71 #if((_MSC_FULL_VER >= 191526726) && (_MSC_FULL_VER <= 191526732)) 74 #error Compiler version is not supported yet! 76 #elif (_MSC_VER == 1914) 77 #if((_MSC_FULL_VER >= 191426430) && (_MSC_FULL_VER <= 191426433)) 80 #error Compiler version is not supported yet! 82 #elif (_MSC_VER == 1913) 83 #if((_MSC_FULL_VER >= 191326128) && (_MSC_FULL_VER <= 191326132)) 86 #error Compiler version is not supported yet! 88 #elif (_MSC_VER == 1912) 89 #if((_MSC_FULL_VER >= 191225830) && (_MSC_FULL_VER <= 191225835)) 92 #error Compiler version is not supported yet! 94 #elif (_MSC_VER == 1911) 95 #if((_MSC_FULL_VER >= 191125542) && (_MSC_FULL_VER <= 191125547)) 97 #elif((_MSC_FULL_VER >= 191125506) && (_MSC_FULL_VER <= 191125508)) 100 #error Compiler version is not supported yet! 102 #elif (_MSC_VER == 1910) 103 #if ((_MSC_FULL_VER >= 191025017) && (_MSC_FULL_VER <= 191025019)) 106 #error Compiler version is not supported yet! 108 #elif (_MSC_VER == 1900) 109 #if (_MSC_FULL_VER == 190023026) 111 #elif (_MSC_FULL_VER == 190023506) 113 #elif (_MSC_FULL_VER == 190023918) 115 #elif (_MSC_FULL_VER == 190024210) || (_MSC_FULL_VER == 190024215) 118 #error Compiler version is not supported yet! 120 #elif (_MSC_VER == 1800) 121 #if (_MSC_FULL_VER == 180021005) 123 #elif (_MSC_FULL_VER == 180030501) 125 #elif (_MSC_FULL_VER == 180030723) 127 #elif (_MSC_FULL_VER == 180031101) 129 #elif (_MSC_FULL_VER == 180040629) 132 #error Compiler version is not supported yet! 134 #elif (_MSC_VER == 1700) 135 #if (_MSC_FULL_VER == 170050727) 137 #elif (_MSC_FULL_VER == 170051106) 139 #elif (_MSC_FULL_VER == 170060315) 141 #elif (_MSC_FULL_VER == 170060610) 143 #elif (_MSC_FULL_VER == 170061030) 146 #error Compiler version is not supported yet! 148 #elif (_MSC_VER == 1600) 149 #if (_MSC_FULL_VER >= 160040219) 154 #elif (_MSC_VER == 1500) 155 #if (_MSC_FULL_VER >= 150030729) 161 #error Compiler is not supported! 164 #error Compiler is not supported! 166 return COMPILER_VERS;
170 static const char *
const compiler_arch(
void)
172 static const char *
const COMPILER_ARCH =
175 #elif defined(_M_IX86) 178 #error Architecture is not supported! 180 return COMPILER_ARCH;
185 static const char *
const build_date_raw(
void)
187 static const char *
const RAW_BUILD_DATE = __DATE__;
188 return RAW_BUILD_DATE;
192 static const char *
const build_time_raw(
void)
194 static const char *
const RAW_BUILD_TIME = __TIME__;
195 return RAW_BUILD_TIME;
+
38 MUTILS_API
static const quint32 &lib_version_major(
void);
39 MUTILS_API
static const quint32 &lib_version_minor(
void);
42 MUTILS_API
static const QDate lib_build_date(
void);
43 MUTILS_API
static const QTime lib_build_time(
void);
46 MUTILS_API
static const QDate app_build_date(
const char *
const date_str = build_date_raw());
47 MUTILS_API
static const QTime app_build_time(
const char *
const time_str = build_time_raw());
50 static const char *
const compiler_version(
void)
52 static const char *
const COMPILER_VERS =
53 #if defined(__INTEL_COMPILER) 54 #if (__INTEL_COMPILER >= 1500) 55 "ICL 15." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
56 #elif (__INTEL_COMPILER >= 1400) 57 "ICL 14." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
58 #elif (__INTEL_COMPILER >= 1300) 59 "ICL 13." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
60 #elif (__INTEL_COMPILER >= 1200) 61 "ICL 12." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
62 #elif (__INTEL_COMPILER >= 1100) 64 #elif (__INTEL_COMPILER >= 1000) 67 #error Compiler is not supported! 69 #elif defined(_MSC_VER) 70 #if (_MSC_VER == 1916) 71 #if((_MSC_FULL_VER >= 191627024) && (_MSC_FULL_VER <= 191627024)) 74 #error Compiler version is not supported yet! 76 #elif (_MSC_VER == 1915) 77 #if((_MSC_FULL_VER >= 191526726) && (_MSC_FULL_VER <= 191526732)) 80 #error Compiler version is not supported yet! 82 #elif (_MSC_VER == 1914) 83 #if((_MSC_FULL_VER >= 191426430) && (_MSC_FULL_VER <= 191426433)) 86 #error Compiler version is not supported yet! 88 #elif (_MSC_VER == 1913) 89 #if((_MSC_FULL_VER >= 191326128) && (_MSC_FULL_VER <= 191326132)) 92 #error Compiler version is not supported yet! 94 #elif (_MSC_VER == 1912) 95 #if((_MSC_FULL_VER >= 191225830) && (_MSC_FULL_VER <= 191225835)) 98 #error Compiler version is not supported yet! 100 #elif (_MSC_VER == 1911) 101 #if((_MSC_FULL_VER >= 191125542) && (_MSC_FULL_VER <= 191125547)) 103 #elif((_MSC_FULL_VER >= 191125506) && (_MSC_FULL_VER <= 191125508)) 106 #error Compiler version is not supported yet! 108 #elif (_MSC_VER == 1910) 109 #if ((_MSC_FULL_VER >= 191025017) && (_MSC_FULL_VER <= 191025019)) 112 #error Compiler version is not supported yet! 114 #elif (_MSC_VER == 1900) 115 #if (_MSC_FULL_VER == 190023026) 117 #elif (_MSC_FULL_VER == 190023506) 119 #elif (_MSC_FULL_VER == 190023918) 121 #elif (_MSC_FULL_VER == 190024210) || (_MSC_FULL_VER == 190024215) 124 #error Compiler version is not supported yet! 126 #elif (_MSC_VER == 1800) 127 #if (_MSC_FULL_VER == 180021005) 129 #elif (_MSC_FULL_VER == 180030501) 131 #elif (_MSC_FULL_VER == 180030723) 133 #elif (_MSC_FULL_VER == 180031101) 135 #elif (_MSC_FULL_VER == 180040629) 138 #error Compiler version is not supported yet! 140 #elif (_MSC_VER == 1700) 141 #if (_MSC_FULL_VER == 170050727) 143 #elif (_MSC_FULL_VER == 170051106) 145 #elif (_MSC_FULL_VER == 170060315) 147 #elif (_MSC_FULL_VER == 170060610) 149 #elif (_MSC_FULL_VER == 170061030) 152 #error Compiler version is not supported yet! 154 #elif (_MSC_VER == 1600) 155 #if (_MSC_FULL_VER >= 160040219) 160 #elif (_MSC_VER == 1500) 161 #if (_MSC_FULL_VER >= 150030729) 167 #error Compiler is not supported! 170 #error Compiler is not supported! 172 return COMPILER_VERS;
176 static const char *
const compiler_arch(
void)
178 static const char *
const COMPILER_ARCH =
181 #elif defined(_M_IX86) 184 #error Architecture is not supported! 186 return COMPILER_ARCH;
191 static const char *
const build_date_raw(
void)
193 static const char *
const RAW_BUILD_DATE = __DATE__;
194 return RAW_BUILD_DATE;
198 static const char *
const build_time_raw(
void)
200 static const char *
const RAW_BUILD_TIME = __TIME__;
201 return RAW_BUILD_TIME;
This file contains miscellaneous functions that are generally useful for Qt-based applications...
Global MUtils namespace.
Definition: CPUFeatures.h:37
diff --git a/docs/d8/d4d/_lazy_8h.html b/docs/d8/d4d/_lazy_8h.html
index 194cf96..c3b9049 100644
--- a/docs/d8/d4d/_lazy_8h.html
+++ b/docs/d8/d4d/_lazy_8h.html
@@ -75,7 +75,9 @@ $(function() {
More...
#include <MUtils/Global.h>
#include <MUtils/Exception.h>
+
#include <QThread>
#include <QAtomicPointer>
+
#include <QAtomicInt>
#include <functional>
Go to the source code of this file.
diff --git a/docs/d8/d4d/_lazy_8h_source.html b/docs/d8/d4d/_lazy_8h_source.html
index 2fe9914..bab02d4 100644
--- a/docs/d8/d4d/_lazy_8h_source.html
+++ b/docs/d8/d4d/_lazy_8h_source.html
@@ -67,8 +67,8 @@ $(function() {
Lazy.h
-
Go to the documentation of this file. 31 #include <MUtils/Exception.h> 34 #include <QAtomicPointer> 48 template<
typename T>
class Lazy 51 Lazy(std::function<T*(
void)> &&initializer) : m_initializer(initializer) { }
56 while (!(value = m_value.fetchAndAddOrdered(0)))
58 if (!(value = m_initializer()))
60 MUTILS_THROW(
"Initializer returned NULL pointer!");
62 if (m_value.testAndSetOrdered(NULL, value))
74 if(T *
const value = m_value.fetchAndStoreOrdered(NULL))
81 QAtomicPointer<T> m_value;
82 const std::function<T*(void)> m_initializer;
This file contains miscellaneous functions that are generally useful for Qt-based applications...
-
Lazy initialization template class.
Definition: Lazy.h:48
+
Go to the documentation of this file. 31 #include <MUtils/Exception.h> 35 #include <QAtomicPointer> 50 template<
typename T>
class Lazy 53 Lazy(std::function<T*(
void)> &&initializer) : m_initializer(initializer) { }
72 if(T *
const value = m_value)
79 __forceinline T* getValue()
82 while (!(value = m_value))
84 if (m_state.testAndSetOrdered(0, 1))
86 if (value = m_initializer())
88 m_value.fetchAndStoreOrdered(value);
89 m_state.fetchAndStoreOrdered(2);
92 m_state.fetchAndStoreOrdered(0);
93 MUTILS_THROW(
"Initializer returned NULL pointer!");
95 QThread::yieldCurrentThread();
101 QAtomicPointer<T> m_value;
103 const std::function<T*(void)> m_initializer;
This file contains miscellaneous functions that are generally useful for Qt-based applications...
+
Lazy initialization template class.
Definition: Lazy.h:50
Global MUtils namespace.
Definition: CPUFeatures.h:37
diff --git a/docs/da/d44/class_m_utils_1_1_lazy-members.html b/docs/da/d44/class_m_utils_1_1_lazy-members.html
index 6110c3d..40102de 100644
--- a/docs/da/d44/class_m_utils_1_1_lazy-members.html
+++ b/docs/da/d44/class_m_utils_1_1_lazy-members.html
@@ -70,9 +70,12 @@ $(function() {
This is the complete list of members for MUtils::Lazy< T >, including all inherited members.