|
virtual void | consume_params (sprockit::sim_parameters *params) |
|
app * | clone_type () const |
|
void | skeleton_main () |
|
int | allocate_tls_key (destructor_fxn fnx) |
|
software_id | sid () const |
|
int | appnum () const |
|
int | tasknum () const |
|
app * | parent_app () const |
|
void | sleep (timestamp time) |
|
void | compute (timestamp time) |
|
void | compute_inst (compute_event *cmsg) |
|
void | compute_loop (uint64_t, int nflops_per_loop, int nintops_per_loop, int bytes_per_loop) |
|
void | compute_detailed (long flops, long intops, long bytes) |
|
void | compute_block_read (long bytes) |
|
void | compute_block_write (long bytes) |
|
void | compute_block_memcpy (long bytes) |
|
lib_compute_loops * | compute_loops_lib () |
|
virtual | ~app () |
| Goodbye. More...
|
|
app * | clone (software_id newid) |
|
virtual void | kill () |
|
virtual void | run () |
| Derived types need to override this method. More...
|
|
virtual void | init_factory_params (sprockit::sim_parameters *params) |
|
sprockit::sim_parameters * | params () const |
|
void | add_subthread (thread *thr) |
| Let a parent application know about the existence of a subthread If thread does not have an initialized ID, a unique ID is allocated for the thread Can be called from a constructor. More...
|
|
void | set_subthread_done (thread *thr) |
| Indicate to parent application that subthread is done running. More...
|
|
void | remove_subthread (thread *thr) |
| Let a parent application know a subthread has finished. More...
|
|
void | remove_subthread (long thr_id) |
|
thread * | get_subthread (long id) |
| get_subthread More...
|
|
int | allocate_mutex () |
| Allocate a unique ID for a mutex variable. More...
|
|
int | allocate_condition () |
| Allocate a unique ID for a condition variable. More...
|
|
mutex_t * | get_mutex (int id) |
| Fetch a mutex object corresponding to their ID. More...
|
|
condition_t * | get_condition (int id) |
| Fetch a condition object corresponding to the ID. More...
|
|
bool | erase_condition (int id) |
|
bool | erase_mutex (int id) |
|
virtual void | clear_subthread_from_parent_app () |
|
virtual std::string | to_string () const |
|
void | set_api (thread *thr) |
|
template<class T > |
T * | get_api () |
|
virtual | ~thread () |
|
state | get_state () const |
| Get current thread state. More...
|
|
virtual void | init_perf_model_params (sprockit::sim_parameters *params) |
|
app_id | aid () const |
|
task_id | tid () const |
|
void | set_sid (software_id sid) |
|
void | spawn (thread *thr) |
|
long | init_id () |
|
long | thread_id () const |
|
void | cancel () |
| This thread is not currently active - blocked on something However, some kill event happened and I never want to see this thread again. More...
|
|
bool | is_canceled () const |
|
operating_system * | os () const |
|
app_launch * | env () const |
|
void * | stack () const |
|
size_t | stacksize () const |
|
void ** | backtrace () const |
|
int | last_backtrace_nfxn () const |
|
int | backtrace_nfxn () const |
|
void | append_backtrace (void *fxn) |
|
void | pop_backtrace () |
|
void | set_backtrace (void **bt) |
|
void | collect_backtrace (int nfxn) |
|
void | init_thread (int phyiscal_thread_id, threading_interface *tocopy, void *stack, int stacksize, operating_system *os, threading_interface *yield_to) |
|
void | start_thread (thread *thr) |
| A convenience request to start a new thread. More...
|
|
void | join () |
|
process_context | get_process_context () const |
|
key * | schedule_key () |
| key used More...
|
|
bool | is_initialized () const |
| Test whether the current task has been initialized (activated) by a scheduler. More...
|
|
void | register_lib (library *lib) |
|
void | set_affinity (int core) |
|
void | add_affinity (int core) |
|
void | zero_affinity () |
|
template<class T > |
T & | register_perf_ctr_variable (void *ptr) |
|
void | remove_perf_ctr_variable (void *ptr) |
|
perf_counter_model * | perf_ctr_model () const |
|
void | set_cpumask (uint64_t cpumask) |
|
uint64_t | cpumask () const |
|
int | active_core () const |
|
void | set_active_core (int core) |
|
void | set_pthread_map (pthread_map_t *threadmap) |
|
void * | get_tls_value (long thekey) const |
|
void | set_tls_value (long thekey, void *ptr) |
|
timestamp | now () |
|
virtual void | init_factory_params (sim_parameters *params) |
|
virtual void | finalize_init () |
|
Definition at line 286 of file app.h.