Skip to content

Struct Ase::TaskStatus

ClassList > Ase > TaskStatus

Acquire information about a task (process or thread) at runtime.

  • #include <platform.hh>

Public Types

Type Name
enum State

Public Attributes

Type Name
uint64 ac_cstime
uint64 ac_cutime
uint64 ac_stamp
Accounting stamp.
uint64 ac_stime
uint64 ac_utime
uint64 cstime
System time of dead children.
uint64 cutime
Userspace time of dead children.
String name
Thread name (set by user).
int priority
Priority or nice value.
int process_id
Process ID.
int processor
Rrunning processor number.
State state
Thread state.
uint64 stime
System time.
int task_id
Process ID or thread ID.
uint64 utime
Userspace time.

Public Functions

Type Name
TaskStatus (int pid, int tid=-1)
Construct from process ID and optionally thread ID.
String string ()
Retrieve string representation of the status information.
bool update ()
Update status information, might return false if called too frequently.

Public Types Documentation

enum State

enum Ase::TaskStatus::State {
    UNKNOWN = '?',
    RUNNING = 'R',
    SLEEPING = 'S',
    DISKWAIT = 'D',
    STOPPED = 'T',
    PAGING = 'W',
    ZOMBIE = 'Z',
    DEBUG = 'X'
};

Public Attributes Documentation

variable ac_cstime

uint64 Ase::TaskStatus::ac_cstime;

variable ac_cutime

uint64 Ase::TaskStatus::ac_cutime;

variable ac_stamp

uint64 Ase::TaskStatus::ac_stamp;

variable ac_stime

uint64 Ase::TaskStatus::ac_stime;

variable ac_utime

uint64 Ase::TaskStatus::ac_utime;

variable cstime

uint64 Ase::TaskStatus::cstime;

variable cutime

uint64 Ase::TaskStatus::cutime;

variable name

String Ase::TaskStatus::name;

variable priority

int Ase::TaskStatus::priority;

variable process_id

int Ase::TaskStatus::process_id;

variable processor

int Ase::TaskStatus::processor;

variable state

State Ase::TaskStatus::state;

variable stime

uint64 Ase::TaskStatus::stime;

variable task_id

int Ase::TaskStatus::task_id;

variable utime

uint64 Ase::TaskStatus::utime;

Public Functions Documentation

function TaskStatus

explicit Ase::TaskStatus::TaskStatus (
    int pid,
    int tid=-1
) 

function string

String Ase::TaskStatus::string () 

function update

bool Ase::TaskStatus::update () 


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/platform.hh