SPC
Version 0.9.5
Main Page
Related Pages
Modules
Files
Examples
All
Files
Functions
Groups
Pages
ex_StartTask.spc
This is an example of how to use the
StartTask
function.
task foo()
{
while
(
true
) {
Wait
(
SEC_5
);
puts
(
"foo is running\n"
);
}
}
task main()
{
StartTask
(foo);
// start the foo task
while
(
true
)
{
Wait
(
SEC_3
);
puts
(
"main is running\n"
);
}
}
Generated by
1.8.2