ARGOBOTS
Functions | Variables
thread.c File Reference
#include "abti.h"
Include dependency graph for thread.c:

Go to the source code of this file.

Functions

int ABT_thread_create (ABT_pool pool, void(*thread_func)(void *), void *arg, ABT_thread_attr attr, ABT_thread *newthread)
 Create a new thread and return its handle through newthread. More...
 
int ABT_thread_create_on_xstream (ABT_xstream xstream, void(*thread_func)(void *), void *arg, ABT_thread_attr attr, ABT_thread *newthread)
 Create a new ULT associated with the target ES (xstream). More...
 
int ABT_thread_create_many (int num, ABT_pool *pool_list, void(**thread_func_list)(void *), void **arg_list, ABT_thread_attr attr, ABT_thread *newthread_list)
 Create a set of ULTs. More...
 
int ABT_thread_revive (ABT_pool pool, void(*thread_func)(void *), void *arg, ABT_thread *thread)
 Revive the ULT. More...
 
int ABT_thread_free (ABT_thread *thread)
 Release the thread object associated with thread handle. More...
 
int ABT_thread_free_many (int num, ABT_thread *thread_list)
 Release a set of ULT objects. More...
 
int ABT_thread_join (ABT_thread thread)
 Wait for thread to terminate. More...
 
int ABT_thread_join_many (int num_threads, ABT_thread *thread_list)
 Wait for a number of ULTs to terminate. More...
 
int ABT_thread_exit (void)
 The calling ULT terminates its execution. More...
 
int ABT_thread_cancel (ABT_thread thread)
 Request the cancellation of the target thread. More...
 
int ABT_thread_self (ABT_thread *thread)
 Return the handle of the calling ULT. More...
 
int ABT_thread_self_id (ABT_thread_id *id)
 Return the calling ULT's ID. More...
 
int ABT_thread_get_state (ABT_thread thread, ABT_thread_state *state)
 Return the state of thread. More...
 
int ABT_thread_get_last_pool (ABT_thread thread, ABT_pool *pool)
 Return the last pool of ULT. More...
 
int ABT_thread_get_last_pool_id (ABT_thread thread, int *id)
 Get the last pool's ID of the ULT. More...
 
int ABT_thread_set_associated_pool (ABT_thread thread, ABT_pool pool)
 Set the associated pool for the target ULT. More...
 
int ABT_thread_yield_to (ABT_thread thread)
 Yield the processor from the current running thread to the specific thread. More...
 
int ABT_thread_yield (void)
 Yield the processor from the current running ULT back to the scheduler. More...
 
int ABT_thread_resume (ABT_thread thread)
 Resume the target ULT. More...
 
int ABT_thread_migrate_to_xstream (ABT_thread thread, ABT_xstream xstream)
 Migrate a thread to a specific ES. More...
 
int ABT_thread_migrate_to_sched (ABT_thread thread, ABT_sched sched)
 Migrate a thread to a specific scheduler. More...
 
int ABT_thread_migrate_to_pool (ABT_thread thread, ABT_pool pool)
 Migrate a thread to a specific pool. More...
 
int ABT_thread_migrate (ABT_thread thread)
 Request migration of the thread to an any available ES. More...
 
int ABT_thread_set_callback (ABT_thread thread, void(*cb_func)(ABT_thread thread, void *cb_arg), void *cb_arg)
 Set the callback function. More...
 
int ABT_thread_set_migratable (ABT_thread thread, ABT_bool flag)
 Set the ULT's migratability. More...
 
int ABT_thread_is_migratable (ABT_thread thread, ABT_bool *flag)
 Get the ULT's migratability. More...
 
int ABT_thread_is_primary (ABT_thread thread, ABT_bool *flag)
 Check if the target ULT is the primary ULT. More...
 
int ABT_thread_equal (ABT_thread thread1, ABT_thread thread2, ABT_bool *result)
 Compare two ULT handles for equality. More...
 
int ABT_thread_get_stacksize (ABT_thread thread, size_t *stacksize)
 Get the ULT's stack size. More...
 
int ABT_thread_get_id (ABT_thread thread, ABT_thread_id *thread_id)
 Get the ULT's id. More...
 
int ABT_thread_set_arg (ABT_thread thread, void *arg)
 Set the argument for the ULT function. More...
 
int ABT_thread_get_arg (ABT_thread thread, void **arg)
 Retrieve the argument for the ULT function. More...
 
int ABT_thread_get_attr (ABT_thread thread, ABT_thread_attr *attr)
 Get attributes of the target ULT. More...
 

Variables

static ABTD_atomic_uint64 g_thread_id
 

Variable Documentation

ABTD_atomic_uint64 g_thread_id
static
Initial value:
=
ABTD_ATOMIC_UINT64_STATIC_INITIALIZER(0)

Definition at line 2099 of file thread.c.