mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 21:43:33 +08:00
Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent implementation in the systemlib layer. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
* @author Anton Babushkin <anton.babushkin@me.com>
|
||||
*/
|
||||
|
||||
#include <px4_tasks.h>
|
||||
#include <nuttx/config.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -242,7 +242,7 @@ Mavlink::~Mavlink()
|
||||
/* if we have given up, kill it */
|
||||
if (++i > 50) {
|
||||
//TODO store main task handle in Mavlink instance to allow killing task
|
||||
//px4_task_delete(_mavlink_task);
|
||||
//task_delete(_mavlink_task);
|
||||
break;
|
||||
}
|
||||
} while (_task_running);
|
||||
@@ -1618,7 +1618,7 @@ Mavlink::start(int argc, char *argv[])
|
||||
// between the starting task and the spawned
|
||||
// task - start_helper() only returns
|
||||
// when the started task exits.
|
||||
px4_task_spawn_cmd(buf,
|
||||
task_spawn_cmd(buf,
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_DEFAULT,
|
||||
2400,
|
||||
|
||||
Reference in New Issue
Block a user