modify readme and fix(maybe?) the curious thread support problem

This commit is contained in:
qqiangwu
2015-04-12 00:59:49 +08:00
parent 86d675fa85
commit 9c3f53eab8
7 changed files with 48 additions and 10 deletions

View File

@@ -2,11 +2,17 @@
#define NANA_STD_CONDITION_VARIABLE_HPP
#include <nana/config.hpp>
#if defined(STD_THREAD_NOT_SUPPORTED)
#if defined(STD_THREAD_NOT_SUPPORTED) && !defined(NANA_MINGW) || __GNUC_MINOR__ < 8
#include <boost/thread/condition_variable.hpp>
namespace std
{
typedef boost::condition_variable condition_variable;
}
#else
#include <condition_variable>
#endif
#endif // NANA_STD_CONDITION_VARIABLE_HPP

View File

@@ -2,7 +2,8 @@
#define NANA_STD_MUTEX_HPP
#include <nana/config.hpp>
#if defined(STD_THREAD_NOT_SUPPORTED)
#if defined(STD_THREAD_NOT_SUPPORTED) && !defined(NANA_MINGW) || __GNUC_MINOR__ < 8
#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>
#include <boost/thread/locks.hpp>
@@ -18,5 +19,10 @@ namespace std
typedef boost::mutex mutex;
typedef boost::recursive_mutex recursive_mutex;
}
#else
#include <mutex>
#endif
#endif // NANA_STD_MUTEX_HPP

View File

@@ -2,12 +2,16 @@
#define NANA_STD_THREAD_HPP
#include <nana/config.hpp>
#if defined(STD_THREAD_NOT_SUPPORTED)
#if defined(STD_THREAD_NOT_SUPPORTED) && !defined(NANA_MINGW) || __GNUC_MINOR__ < 8
#include <boost/thread.hpp>
namespace std
{
typedef boost::thread thread;
}
#else
#include <thread>
#endif
#endif // NANA_STD_THREAD_HPP