Skip to content
Snippets Groups Projects
Commit 65cca56c authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Code style fix

parent c9785499
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,7 @@ int px4_task_delete(px4_task_t id)
}
pthread_mutex_lock(&task_mutex);
// If current thread then exit, otherwise cancel
if (pthread_self() == pid) {
taskmap[id].isused = false;
......@@ -268,6 +269,7 @@ void px4_task_exit(int ret)
} else {
PX4_DEBUG("px4_task_exit: %s", taskmap[i].name.c_str());
}
pthread_mutex_unlock(&task_mutex);
pthread_exit((void *)(unsigned long)ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment