Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes | Friends | List of all members
Thread Class Referenceabstract
Inheritance diagram for Thread:
ThreadDummy

Classes

struct  Settings
 

Public Types

enum  Priority { PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_HIGH }
 
typedef uint64_t ID
 

Public Member Functions

virtual ID get_ID () const =0
 

Static Public Member Functions

static Error set_name (const String &p_name)
 
static _FORCE_INLINE_ ID get_main_ID ()
 get the ID of the main thread
 
static ID get_caller_ID ()
 get the ID of the caller function ID
 
static void wait_to_finish (Thread *p_thread)
 waits until thread is finished, and deallocates it.
 
static Threadcreate (ThreadCreateCallback p_callback, void *p_user, const Settings &p_settings=Settings())
 Static function to create a thread, will call p_callback.
 

Static Protected Attributes

static Thread *(* create_func )(ThreadCreateCallback p_callback, void *, const Settings &) =NULL
 
static ID(* get_thread_ID_func )() =NULL
 
static void(* wait_to_finish_func )(Thread *) =NULL
 
static Error(* set_name_func )(const String &) =NULL
 
static ID _main_thread_id =0
 

Friends

class Main
 

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