BirthWait Funct Wait for task valid and not task_num. CTask Class The Fs segment reg points to current CTask. DeathWait Funct Wait for task death. Exit Funct Terminate own task. FindTaskByTitle Funct Report current tasks on all cores. FindTaskCore Funct { Fs Funct Invalidate page at addr inst. IsSuspended Funct You might use this in a DrawIt() or Animatetask(). Kill Funct Terminate other task. LastTask Funct { Reindent Funct Find files with too many cols. SetSysFocusTask Funct { Spawn Funct Create task on core running at address. Suspend Funct Tell scheduler to skip task. TaskCoreRep Funct Report current tasks on a single core. TaskQueIns Funct Insert a task in the scheduler running task queue. TaskQueRem Funct Remove a task from the scheduler running task queue. TaskRep Funct Report current tasks on all cores. TaskValidate Funct return TRUE if task looks valid. TaskWait Funct Wait for idle. User Funct Create user term task. UserCmdLine Funct A user task ends-up calling this. Yield Funct Yield cpu to next task. adam_task GlbVar CTask *adam_task; blink_master_flag GlbVar I64 blink_master_flag=1; fps_master GlbVar I64 fps_master=30; gr GlbVar CGrGlbls gr; last_init_task GlbVar CTask *last_init_task=NULL; scroll_master_flag GlbVar I64 scroll_master_flag=1; seth_gfx_flag GlbVar Unres seth_gr_sema GlbVar Unres extern Bool (*fp_serial_blkdev_write)(U8* buf, I64 blk, I64 cnt); seth_gr_task GlbVar Unres #help_file "::/Doc/Seth" sys_num_spawned_tasksGlbVar I64 sys_num_spawned_tasks; winmgr GlbVar extern I64 GetVolume();
Task Busy Funct Loosely timed. FPSProf Funct Counts real FPS, does not include window manager sleeping FPSProfReset Funct Ensures FPS test not running PortNop Funct Innoculous (reads IRQ Mask) which should take fixed time Refresh Funct Wait for 30fps WinMgr to start & finish scrn refresh. Sleep Funct Not for power-saving. It is to make a program pause without hogging the CPU. SleepUntil Funct Not for power-saving. It is to make a program pause without hogging the CPU.
Task/Delay /* Graphics Not Rendered in HTML */ PopUpPrint User ExePrint PopUp ExePutS Core0 AdamTask SrvCmdLine AP SethTask UserCmdLine SrvTaskCont UserTaskCont JobsHndlr JobRunOne JobRunOne ExeCmdLine ExeCmdLine CJob nodes are one of five types. User applications deal with text or msgs. JobRunOne() will call a function, spawn a task or execute some text src code. #define JOBT_TEXT_INPUT 0 //TaskText() Feed StdIn #define JOBT_MSG 1 //TaskMsg() Post msg #define JOBT_EXE_STR 2 //TaskExe() Compile & execute src code text #define JOBT_CALL 3 //JobQue() Tell MP to call function #define JOBT_SPAWN_TASK 4 //Spawn() Tell MP to spawn task Several other routines include a call to JobsHndlr() that gives them powerful ability to execute servant cmds.
Task/Job Adam Funct Make adam_task execute code. AdamErr Funct Display red blinking Err text in adam_task. AdamFile Funct Make adam_task execute file. AdamLog Funct Display text in adam_task. ExeCmdLine Funct Terminal JIT-compile-and-execute loop for CCmpCtrl. JobDel Funct Free one cmd node. JobQue Funct Queue multicore jobs, handled by Seth tasks. JobResGet Funct See ::/Demo/MultiCore/Lock.HC JobResScan Funct Check rqst complete, return with or without. JobsHndlr Funct Handle all waiting cmds and return. PopUp Funct Execute code in PopUp task. PopUpEd Funct Create PopUp win task and edit a doc. PopUpFile Funct ExeFile2() in PopUp task. Cont as User. PopUpPrint Funct Execute code in PopUp task. PopUpRunFile Funct ExeFile() with args using LastFun() in PopUp task. Spawn Funct Create task on core running at address. SrvTaskCont Funct Act as server task in a loop handling commands. TaskExe Funct Queues a request to compile and execute src code text. TaskRstAwaitingMsg Funct Pop-ups get parent messages so wake-up our pop-ups if we got a msg. UserTaskCont Funct Terminal key-input-execute loop.
Task/Job/Exe In Funct Send text to own input buffer. See ::/Demo/AcctExample/TOS/TOSDistro.HC. InFile Funct Send InFile code file to self. InStr Funct Send InFile code to self. Msg Funct Post message to current task and return immediately. PostMsg Funct Post message to a task and return immediately. See msg_code. PostMsgWait Funct Post message to a task and wait until task is idle.See msg_code. TaskMsg Funct Post message to servant task. Tell who the master task is. TaskText Funct Post StdIn text to servant task. Tell who the master task is. XTalk Funct Sends text to other task. See ::/Misc/OSTestSuite.HC. XTalkStr Funct Send InFile code to other task. XTalkStrWait Funct Send InFile code to other task and wait for it to idle. XTalkWait Funct Send text to other task and wait for it to idle.
Task/Job/Text & Msgs TSSBusy Funct See ::/Demo/Lectures/Ring3.HC. TaskDerivedValsUpdateFunct Those things calculated from other variables. WinDerivedValsUpdateFunct Those things calculated from other variables.
Task/Misc CTaskSettings Class class CTaskSettings SettingsPop Funct Typically, called at end of an application. SettingsPush Funct Typically, called at start of an application.
Task/Settings