modify readme and fix(maybe?) the curious thread support problem
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user