MIRA
Namespaces | Macros | Functions
Thread.h File Reference

Includes, defines and functions for threads. More...

#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>
#include <boost/thread/locks.hpp>
#include <platform/Platform.h>
#include <utils/Time.h>
Include dependency graph for Thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Macros

#define MIRA_SLEEP(ms)   mira::sleep(mira::Duration::milliseconds(ms));
 Sleeps for ms milliseconds This is a thread interruption point - if interruption of the current thread has been requested, its execution will terminate. More...
 
#define MIRA_DISABLE_THREAD_INTERRUPT   disable_interruption _disable_interruption_USE_ONLY_ONCE_PER_SCOPE_;
 Disable interruption of the current thread in the scope where this is placed. More...
 
#define MIRA_SLEEP_NO_INTERRUPT(ms)
 Sleeps for ms milliseconds, thread interruption is disabled for this time (but not beyond). More...
 

Functions

float MIRA_BASE_EXPORT getCPUUsage ()
 Returns the CPU usage of the calling process in percent. More...
 

Detailed Description

Includes, defines and functions for threads.

Author
Tim Langner, Christof Schröter
Date
2011/06/23