GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
System::Thread Class Reference

Built-in type that represents a thread for asynchronous tasks. More...

Inheritance diagram for System::Thread:
System::Object

Public Member Functions

 Thread ()
 constructor taking no param More...
 
 Thread (FunctionObject func)
 Creates a new adhoc thread from the provided function. More...
 
void start ()
 Starts the thread. More...
 
void terminate ()
 Sets the thread's state to terminate. More...
 
void join (UInt wait_time=0)
 Blocks the calling thread until the thread represented by this instance terminates. More...
 
void wait (Float wait_time=0)
 Waits on the thread. More...
 
void sleep ()
 Puts the thread to sleep. More...
 
void wakeup ()
 Wakes the thread if sleeping.. More...
 
void last_value ()
 Unknown. More...
 
void wrap ()
 Unknown. Might take non-fixed amount of threads as parameters. More...
 
void resume ()
 Resumes the thread. More...
 
void setEntry (FunctionObject entry)
 Sets the thread's entrypoint. More...
 
void setFinalize (FunctionObject fin)
 Sets the thread's finalizer. More...
 
 operator_call ()
 
- Public Member Functions inherited from System::Object
 Object ()
 constructor taking no param More...
 
Bool isInstanceOf (Class classType)
 Returns whether an object is of a specific class/type. More...
 
Object getDeepCopy ()
 Gets a deep copy of this object. More...
 
void setDeepCopy (Object obj)
 Unk. More...
 
String dump ()
 Dumps all info about an object. More...
 
Object getObjectAttribute (string path)
 
void setObjectAttribute (string path, Object value)
 
Bool hasPrimitiveInterface ()
 Returns whether this object has a primitive interface. More...
 
Bool toBool ()
 Casts this object to Bool. More...
 
Byte toByte ()
 Casts this object to Byte. More...
 
Short toShort ()
 Casts this object to Short. More...
 
Int toInt ()
 Casts this object to Int. More...
 
Long toLong ()
 Casts this object to Long. More...
 
UByte toUByte ()
 Casts this object to UByte. More...
 
UShort toUShort ()
 Casts this object to UShort. More...
 
UInt toUInt ()
 Casts this object to UInt. More...
 
ULong toULong ()
 Casts this object to ULong. More...
 
Float toFloat ()
 Casts this object to Float. More...
 
Double toDouble ()
 Casts this object to Double. More...
 
String toString ()
 Casts this object to String. More...
 
Symbol toSymbol ()
 Casts this object to Symbol. More...
 
Bool hasArrayInterface ()
 Returns whether this object has an Array interface. More...
 
Int getArrayCount ()
 Gets the Array item count for this object. More...
 
void setArrayCount ()
 Sets the Array item count for this object. More...
 
Object getArrayElement (Object arg0)
 Gets an Array item for this object. More...
 
void setArrayElement (Object arg0, Object arg1)
 Sets the Array item for this object. More...
 
Bool hasMapInterface ()
 Returns whether this object has a Map interface. More...
 
int getMapCount ()
 Returns the count of items in the map. More...
 
void setMapElement (Object arg0, Object arg1)
 Returns whether the Map has a specific object key. Bool hasMapElement(Object arg0);. More...
 
Object getMapElement (Object arg0)
 Gets a Map element by key. More...
 
void hasGeneratorInterface ()
 Returns whether this object has a generator interface. More...
 
Iterator generator ()
 Returns generator (?) More...
 
void hasIteratorInterface ()
 Returns whether this object has an iterator. More...
 
Iterator iterator ()
 Gets the iterator for this object. More...
 
void hasVariableInterface ()
 Returns whether this object is a variable. More...
 
void hasFunctionInterface ()
 Returns whether this object has a function interface. More...
 
Object call ()
 Calls this object as a function. More...
 
Bool hasByteDataInterface ()
 Returns whether this object has a byte data interface. More...
 
Int getByteDataCount ()
 Returns the ByteData size for this object. More...
 
void setByteDataCount (Int count)
 Sets the ByteData size for this object. More...
 
Int getByteDataCapacity ()
 Returns the ByteData capacity for this object. More...
 
void setByteDataCapacity (Int capacity)
 Sets the ByteData capacity for this object. More...
 
ByteData getByteData ()
 Gets the underlaying ByteData. More...
 
void setByteData (ByteData bytedata)
 Sets the underlaying ByteData. More...
 
void hasObjectSelectorInterface ()
 Returns whether this object has an object selector interface. More...
 
void self ()
 Gets the get for this object if it has a get interface. More...
 
void getArchiveTree ()
 
void setArchiveTree ()
 
ByteData serialize ()
 Serializes this object. More...
 
void deserialize (ByteData serializedData)
 Deserializes this object. More...
 
void defined (Object obj)
 Returns whether a certain object is defined within this object. More...
 
Array find_all (FunctionObject func)
 Finds all the elements in this object that matches the predicates. More...
 
void each_all (FunctionObject func)
 Applies callback to all elements in this object. More...
 
Array map_all (FunctionObject< Object > func)
 Maps all the elements in this object. More...
 
Bool operator!= ()
 Returns whether this object is not equal to another. More...
 
Bool operator== ()
 Returns whether this object is equal to another. More...
 

Static Public Member Functions

static Thread GetCurrent ()
 Gets the current thread. More...
 
static void Wait ()
 Wait on the current thread. More...
 
static void Sleep (Float time)
 Sleep on the current thread. More...
 
static void Terminate ()
 Terminates the current thread. More...
 

Public Attributes

Bool is_alive
 Getter only. Returns whether the thread is alive and running. More...
 
- Public Attributes inherited from System::Object
Int rc_size
 Getter-only. Reference counter size of this object. More...
 
Object rc_class
 Getter-only. Type name of the object. More...
 
Int rc_count
 Getter-only. Reference count of this object. More...
 
Int weak_count
 Getter-only. Weak reference count of this object. More...
 
Class class_id
 Class (type) object for this object. More...
 

Detailed Description

Built-in type that represents a thread for asynchronous tasks.

Definition at line 4 of file Thread.cpp.

Constructor & Destructor Documentation

◆ Thread() [1/2]

System::Thread::Thread ( )
inline

constructor taking no param

Definition at line 9 of file Thread.cpp.

◆ Thread() [2/2]

System::Thread::Thread ( FunctionObject  func)
inline

Creates a new adhoc thread from the provided function.

Definition at line 12 of file Thread.cpp.

Member Function Documentation

◆ GetCurrent()

static Thread System::Thread::GetCurrent ( )
static

Gets the current thread.

◆ join()

void System::Thread::join ( UInt  wait_time = 0)

Blocks the calling thread until the thread represented by this instance terminates.

◆ last_value()

void System::Thread::last_value ( )

Unknown.

◆ operator_call()

System::Thread::operator_call ( )
inline

Definition at line 62 of file Thread.cpp.

◆ resume()

void System::Thread::resume ( )

Resumes the thread.

◆ setEntry()

void System::Thread::setEntry ( FunctionObject  entry)

Sets the thread's entrypoint.

◆ setFinalize()

void System::Thread::setFinalize ( FunctionObject  fin)

Sets the thread's finalizer.

◆ sleep()

void System::Thread::sleep ( )

Puts the thread to sleep.

◆ Sleep()

static void System::Thread::Sleep ( Float  time)
static

Sleep on the current thread.

◆ start()

void System::Thread::start ( )

Starts the thread.

◆ terminate()

void System::Thread::terminate ( )

Sets the thread's state to terminate.

◆ Terminate()

static void System::Thread::Terminate ( )
static

Terminates the current thread.

◆ Wait()

static void System::Thread::Wait ( )
static

Wait on the current thread.

◆ wait()

void System::Thread::wait ( Float  wait_time = 0)

Waits on the thread.

◆ wakeup()

void System::Thread::wakeup ( )

Wakes the thread if sleeping..

◆ wrap()

void System::Thread::wrap ( )

Unknown. Might take non-fixed amount of threads as parameters.

Member Data Documentation

◆ is_alive

Bool System::Thread::is_alive

Getter only. Returns whether the thread is alive and running.

Definition at line 33 of file Thread.cpp.


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