Thread Functions
Description
Alpha Anywhere provides the following thread functions.
- Name
- Description
- a5_threadstackdump Function
Dump the stack for all threads
- THREAD_COUNT Function
Returns the number of running threads.
- THREAD_CREATE Function
Create a thread - requires a unique thread name , code to run - allows for 'base' variable frame to be passed in.
- THREAD_ENUM Function
Get information about Xbasic threads.
- THREAD_EVENT Function
Send an event to another thread. For internal use only.
- THREAD_GET Function
Get the name of the current thread.
- THREAD_INTERRUPT Function
Send an interrupt event to another thread (thread needs an interrupt function). For internal use only.
- THREAD_IS_RUNNING Function
Returns true if threadname is a running thread.
- thread_monitor_cpu_usage Function
Xbasic monitors CPU usage for the thread using settings provided.
- THREAD_NAME_CREATE Function
For internal use only. Make a unique thread name, provide preferred name, numbers will be added if thread on name already exists.
- THREAD_VARIABLES Function
For internal use only. Get the base variable space for a thread.
- THREAD_WAIT Function
Thread must wait until another thread does a 'thread_event'. For internal use only.
- THREADMON Function
For internal use only.
- XBASIC_ERROR_LOG Function
For internal use only. Logs errors in the currently running thread to a file.
See Also