#ifndef KI_MUTEX_H_ #define KI_MUTEX_H_ /// Establish KiCad MUTEX choices here in this file: /// typedef MUTEX and typedef MUTLOCK. /// /// Using an unnamed resource is easier, providing a textual name for a /// constructor is cumbersome, so we make choice on that criteria mostly: #if 1 // This is a fine choice between the two, but requires linking to ${Boost_LIBRARIES} #include #include typedef boost::interprocess::interprocess_mutex MUTEX; typedef boost::interprocess::scoped_lock MUTLOCK; #else // This choice also works. #include typedef wxMutex MUTEX; typedef wxMutexLocker MUTLOCK; #endif #endif // KI_MUTEX_H_