Function mrpt::system::changeCurrentProcessPriority

Function Documentation

void mrpt::system::changeCurrentProcessPriority(TProcessPriority priority)

Change the priority of the given process (it applies to all the threads, plus independent modifiers for each thread).

  • Windows: See SetPriorityClass

  • Linux (pthreads): Requires root permissions to increase process priority! Internally it calls nice(), so it has no effect if () was called and a SCHED_RR is already active.

    See also

    createThread, changeThreadPriority