Represents the current executable's process. More...
Public Types | |
| enum | ProcessPriority { LowPriority = 0, NormalPriority = 1, HighPriority = 2, RealtimePriority = 3 } |
Static Public Member Functions | |
| static void | setPriority (const ProcessPriority priority) |
| Changes the current process's priority. | |
| static void | terminate () |
| Kills the current process immediately. | |
| static bool | isForegroundProcess () |
| Returns true if this application process is the one that the user is currently using. | |
| static void | raisePrivilege () |
| Raises the current process's privilege level. | |
| static void | lowerPrivilege () |
| Lowers the current process's privilege level. | |
| static bool JUCE_CALLTYPE | isRunningUnderDebugger () |
| Returns true if this process is being hosted by a debugger. | |
Represents the current executable's process.
This contains methods for controlling the current application at the process-level.
| static void Process::setPriority | ( | const ProcessPriority | priority ) | [static] |
Changes the current process's priority.
| priority | the process priority, where 0=low, 1=normal, 2=high, 3=realtime |
| static void Process::terminate | ( | ) | [static] |
Kills the current process immediately.
This is an emergency process terminator that kills the application immediately - it's intended only for use only when something goes horribly wrong.
| static bool Process::isForegroundProcess | ( | ) | [static] |
Returns true if this application process is the one that the user is currently using.
| static void Process::raisePrivilege | ( | ) | [static] |
Raises the current process's privilege level.
Does nothing if this isn't supported by the current OS, or if process privilege level is fixed.
| static void Process::lowerPrivilege | ( | ) | [static] |
Lowers the current process's privilege level.
Does nothing if this isn't supported by the current OS, or if process privilege level is fixed.
| static bool JUCE_CALLTYPE Process::isRunningUnderDebugger | ( | ) | [static] |
Returns true if this process is being hosted by a debugger.