Base object for all execution units (threads). This object defines the basic object that makes an execution thread.
Returns a thread's priority.
#include <cybiko.h> ... struct module_t main_module; ... init_module( &main_module ); ... if( SystemThread_get_priority( main_module.m_process ) < PR_NORMAL ) SystemThread_set_priority( main_module.m_process, PR_NORMAL ); ...
Pauses execution of the thread.
#include <cybiko.h> ... struct module_t main_module; ... init_module( &main_module ); ... play_tone( 30 ); SystemThread_pause( main_module.m_process, 200 ); play_tone( -1 ); ...
Changes the thread's priority.
#include <cybiko.h> ... struct module_t main_module; ... init_module( &main_module ); ... if( SystemThread_get_priority( main_module.m_process ) < PR_NORMAL ) SystemThread_set_priority( main_module.m_process, PR_NORMAL ); ...
Pointer to the module to which the thread belongs.