Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
TYPE RECOMMENDED
)
+# TODO: make it optional, Qt4 was prepping for it I believe (QT_NO_THREAD)
find_package(Threads)
set_package_properties(Threads PROPERTIES
PURPOSE "Required for threads support"
DESCRIPTION "Platform dependent threads implementation"
URL ""
- TYPE RECOMMENDED
+ TYPE REQUIRED
)
if(NOT KATIE_PLATFORM MATCHES "(win32|wince|mac)" AND NOT KATIE_BOOTSTRAP)
ThreadSpecific<T>* owner;
};
-#if ENABLE(SINGLE_THREADED)
+#ifdef QT_NO_THREAD
T* m_value;
#else
QThreadStorage<Data*> m_key;
#endif
};
-#if ENABLE(SINGLE_THREADED)
+#ifdef QT_NO_THREAD
template<typename T>
inline ThreadSpecific<T>::ThreadSpecific()
: m_value(0)
template<typename T>
inline void ThreadSpecific<T>::destroy(void* ptr)
{
-#if !ENABLE(SINGLE_THREADED)
+#ifndef QT_NO_THREAD
Data* data = static_cast<Data*>(ptr);
// See comment as above
#include "config.h"
#include "Threading.h"
-#if ENABLE(SINGLE_THREADED)
+#ifdef QT_NO_THREAD
namespace WTF {
} // namespace WTF
-#else // SINGLE_THREADED
+#else // QT_NO_THREAD
#include "CurrentTime.h"
#include "HashMap.h"