Program Listing for File lvropenmp.hpp

Return to documentation for file (include/lvr2/config/lvropenmp.hpp)

#ifndef LVROPENMP
#define LVROPENMP

namespace lvr2
{

/***
 * @brief   Config class to get save access to information about OpenMP.
 *          Build to prevent trouble with OpenMP includes on compilers
 *          that do not support OpenMP
 */
class OpenMPConfig
{
public:

    static bool haveOpenMP();

    static int  getNumThreads();

    static void setNumThreads(int n);

    static void setMaxNumThreads();
};

} // namespace lvr2

#endif // LVROPENMP