diff options
author | px4dev <px4@purgatory.org> | 2012-10-01 00:02:38 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-01 00:02:38 -0700 |
commit | 93c200d281e7488db95806840a6976b02d1afbe0 (patch) | |
tree | 606a24e6778f54c3d7fa9939f303d89f76161d4e /apps/commander | |
parent | 6005077d54e6b96a5284752eedbd026ef7952341 (diff) | |
download | px4-firmware-93c200d281e7488db95806840a6976b02d1afbe0.tar.gz px4-firmware-93c200d281e7488db95806840a6976b02d1afbe0.tar.bz2 px4-firmware-93c200d281e7488db95806840a6976b02d1afbe0.zip |
Add new 'task_spawn' interface for starting new tasks in the PX4 world
Diffstat (limited to 'apps/commander')
-rw-r--r-- | apps/commander/commander.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 960c5d383..3e188eb63 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -949,7 +949,12 @@ int commander_main(int argc, char *argv[]) } thread_should_exit = false; - deamon_task = task_create("commander", SCHED_PRIORITY_MAX - 50, 4096, commander_thread_main, (argv) ? (const char **)&argv[2] : (const char **)NULL); + deamon_task = task_spawn("commander", + SCHED_RR, + SCHED_PRIORITY_MAX - 50, + 4096, + commander_thread_main, + (argv) ? (const char **)&argv[2] : (const char **)NULL); thread_running = true; exit(0); } |