Main task statements
QNX SDP8.0PLMS User's GuideAPIConfigurationDeveloper
The following definitions and functions are applicable for main and user-defined tasks. All fields are optional unless otherwise specified.
All statements in a task must be defined before any functions are defined for a task.
The following example provides a good illustration of attribute and function order in a task:
component "comp_good" {
task "main" {
command = "/data/home/root/ptest_exec"
args = "-n comp4_main"
waitfor_delay(1000)
exec()
}
}The following represents a bad example of an attribute and function order in a task (the delay precedes the command):
component "comp_bad" {
task "main" {
waitfor_delay(1000)
command = "/data/home/root/ptest_exec"
args = "-n comp4_main"
exec()
}
}
Page updated:
