#ifndef NANA_STD_MUTEX_HPP #define NANA_STD_MUTEX_HPP #include #if defined(STD_THREAD_NOT_SUPPORTED) #if defined(NANA_ENABLE_MINGW_STD_THREADS_WITH_MEGANZ) #include #include #include //#include //#include #include #include // http://lxr.free-electrons.com/source/include/uapi/asm-generic/errno.h#L53 //#define EPROTO 71 /* Protocol error */ #ifdef _GLIBCXX_HAS_GTHREADS # include #else #include #include #endif #else #include #include #include namespace std { template using lock_guard = boost::lock_guard; template using unique_lock = boost::unique_lock; typedef boost::mutex mutex; typedef boost::recursive_mutex recursive_mutex; } #endif // (NANA_ENABLE_MINGW_STD_THREADS_WITH_MEGANZ) #endif // (STD_THREAD_NOT_SUPPORTED) #endif // NANA_STD_MUTEX_HPP