Public Types | Static Public Member Functions

Process Class Reference

Represents the current executable's process. More...

List of all members.

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.

Detailed Description

Represents the current executable's process.

This contains methods for controlling the current application at the process-level.

See also:
Thread, JUCEApplication

Member Enumeration Documentation

Enumerator:
LowPriority 
NormalPriority 
HighPriority 
RealtimePriority 

Member Function Documentation

static void Process::setPriority ( const ProcessPriority  priority ) [static]

Changes the current process's priority.

Parameters:
prioritythe 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.

See also:
JUCEApplication::quit
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.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines