06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pSOS+ <strong>System</strong> <strong>Calls</strong> t_restart<br />

Error Codes<br />

Notes<br />

See Also<br />

Hex Mnemonic Description<br />

0x05 ERR_OBJDEL Task already deleted.<br />

0x06 ERR_OBJID tid is incorrect: failed validity check.<br />

0x07 ERR_OBJTYPE Object type doesn’t match object ID;<br />

failed validity check.<br />

0x0D ERR_RSTFS Information only: possible file<br />

corruption on restart.<br />

0x13 ERR_NACTIVE Cannot restart: this task never<br />

started.<br />

0x53 ERR_ILLRSC Task not created on this node.<br />

1. Even though t_restart() resets the task's stacks, the stacks' contents<br />

remain intact. The stack frame and any automatic variables it contains for the<br />

task's outermost procedure should remain intact (despite restart) until<br />

something is stored into it, or it is initialized.<br />

2. Once restarted, a task can actively compete for the CPU and all other system<br />

resources. Thus, it can preempt the calling task if it has a higher priority.<br />

Multiprocessor Considerations<br />

None. A task can be restarted from the local node only.<br />

Callable From<br />

■ Task<br />

t_create, t_start, t_delete<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-151<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!