CGII/framework/include/cgv/os/priority.h

24 lines
459 B
C
Raw Normal View History

2018-05-17 14:01:02 +00:00
#pragma once
#include "lib_begin.h"
namespace cgv {
namespace os {
/// supports only three different priorities
enum ExecutionPriority {
EP_IDLE,
EP_NORMAL,
EP_HIGH
};
/// return the execution priority of the current thread and process
ExecutionPriority CGV_API get_execution_priority();
/// set the execution priority of the current thread and process
bool CGV_API set_execution_priority(ExecutionPriority ep);
}
}
2018-05-17 13:50:03 +00:00
#include <cgv/config/lib_end.h>