Allow setting stream gain
[lsnes.git] / include / library / threadtypes.hpp
blob3ff572e96317fa872020e4b6c6ebfb86c7212a28
1 #ifndef _library_threadtypes__hpp__included__
2 #define _library_threadtypes__hpp__included__
4 #include <cstdint>
6 #ifdef NATIVE_THREADS
7 #include <thread>
8 #include <condition_variable>
9 #include <mutex>
10 typedef std::thread thread_class;
11 typedef std::condition_variable cv_class;
12 typedef std::mutex mutex_class;
13 typedef std::unique_lock<std::mutex> umutex_class;
14 #else
15 #include <boost/thread.hpp>
16 #include <boost/thread/locks.hpp>
17 typedef boost::thread thread_class;
18 typedef boost::condition_variable cv_class;
19 typedef boost::mutex mutex_class;
20 typedef boost::unique_lock<boost::mutex> umutex_class;
21 #endif
23 #endif