mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 01:41:36 +08:00
Posix tasks: Mark task creation
This commit is contained in:
@@ -142,6 +142,8 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||||||
// Must add NULL at end of argv
|
// Must add NULL at end of argv
|
||||||
taskdata->argv[argc] = (char *)0;
|
taskdata->argv[argc] = (char *)0;
|
||||||
|
|
||||||
|
PX4_WARN("starting task %s", name);
|
||||||
|
|
||||||
rv = pthread_attr_init(&attr);
|
rv = pthread_attr_init(&attr);
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
PX4_WARN("px4_task_spawn_cmd: failed to init thread attrs");
|
PX4_WARN("px4_task_spawn_cmd: failed to init thread attrs");
|
||||||
|
|||||||
Reference in New Issue
Block a user