这篇教程C++ GetPriorityClass函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetPriorityClass函数的典型用法代码示例。如果您正苦于以下问题:C++ GetPriorityClass函数的具体用法?C++ GetPriorityClass怎么用?C++ GetPriorityClass使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetPriorityClass函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: SetPriorityClassApp::App(){ clan::OpenGLTarget::set_current(); quit = false; // Set the window clan::DisplayWindowDescription desc; desc.set_title("ClanLib App Example"); desc.set_size(clan::Size(1000, 700), true); desc.set_allow_resize(true); window = clan::DisplayWindow(desc); canvas = clan::Canvas(window); // Connect the Window close event sc.connect(window.sig_window_close(), this, &App::on_window_close); // Connect a keyboard handler to on_key_up() sc.connect(window.get_keyboard().sig_key_up(), this, &App::on_input_up); font = clan::Font("tahoma", 16); target_test_run_length_seconds = 0.5f; tests_run_length_microseconds = 0; num_iterations = 0; base_line = 0; Tests::Init(testlist);#ifdef WIN32 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); DWORD dwPriClass = GetPriorityClass(GetCurrentProcess()); switch (dwPriClass) { case NORMAL_PRIORITY_CLASS: priority_class = "Process Priority: NORMAL"; break; case IDLE_PRIORITY_CLASS: priority_class = "Process Priority: IDLE"; break; case HIGH_PRIORITY_CLASS: priority_class = "Process Priority: HIGH"; break; case REALTIME_PRIORITY_CLASS: priority_class = "Process Priority: REALTIME"; break; case BELOW_NORMAL_PRIORITY_CLASS: priority_class = "Process Priority: BELOW NORMAL"; break; case ABOVE_NORMAL_PRIORITY_CLASS: priority_class = "Process Priority: ABOVE NORMAL"; break; } #endif cb_main = clan::bind_member(this, &App::initial_pause); game_time.reset();}
开发者ID:keigen-shu,项目名称:ClanLib,代码行数:60,
|