Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
Ase::TaskRegistry Class Reference

The task registry keeps track of runtime threads for profiling and statistical purposes. More...

#include "platform.hh"

Public Types

typedef std::vector< Ase::TaskStatusList
 

Static Public Member Functions

static void add (const std::string &name, int pid, int tid=-1)
 Add process/thread to registry for runtime profiling.
 
static bool remove (int tid)
 Remove process/thread based on thread_id.
 
static void update ()
 Issue TaskStatus.update on all tasks in registry.
 
static List list ()
 Retrieve a copy to the list of all tasks in registry.
 
static void setup_ase (const String &name16chars)
 
static bool is_ase ()
 

Detailed Description

The task registry keeps track of runtime threads for profiling and statistical purposes.

Definition at line 156 of file platform.hh.

Member Typedef Documentation

◆ List

Definition at line 159 of file platform.hh.

Member Function Documentation

◆ add()

void Ase::TaskRegistry::add ( const std::string name,
int  pid,
int  tid = -1 
)
static

Add process/thread to registry for runtime profiling.

Definition at line 1064 of file platform.cc.

References Ase::TaskStatus::name, std::vector::push_back(), and Ase::TaskStatus::update().

◆ is_ase()

static bool Ase::TaskRegistry::is_ase ( )
static

Definition at line 166 of file platform.hh.

◆ list()

TaskRegistry::List Ase::TaskRegistry::list ( )
static

Retrieve a copy to the list of all tasks in registry.

Definition at line 1095 of file platform.cc.

◆ remove()

bool Ase::TaskRegistry::remove ( int  tid)
static

Remove process/thread based on thread_id.

Definition at line 1074 of file platform.cc.

References std::vector::begin(), std::vector::end(), and std::vector::erase().

◆ setup_ase()

void Ase::TaskRegistry::setup_ase ( const String name16chars)
static

Definition at line 1102 of file platform.cc.

◆ update()

void Ase::TaskRegistry::update ( )
static

Issue TaskStatus.update on all tasks in registry.

Definition at line 1087 of file platform.cc.


The documentation for this class was generated from the following files: