47 #ifndef _MIRA_THREAD_H_ 48 #define _MIRA_THREAD_H_ 51 #include <boost/thread/thread.hpp> 52 #include <boost/thread/mutex.hpp> 53 #include <boost/thread/recursive_mutex.hpp> 54 #include <boost/thread/locks.hpp> 69 using boost::this_thread::sleep;
82 using boost::this_thread::disable_interruption;
97 #define MIRA_SLEEP(ms) mira::MIRA_SLEEP_IMPL(ms); 104 #define MIRA_DISABLE_THREAD_INTERRUPT disable_interruption _disable_interruption_USE_ONLY_ONCE_PER_SCOPE_; 111 #define MIRA_SLEEP_NO_INTERRUPT(ms) \ 113 MIRA_DISABLE_THREAD_INTERRUPT \ void MIRA_SLEEP_IMPL(int ms)
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
float getCPUUsage()
Returns the CPU usage of the calling process in percent.