Dataman: Lower scheduling priority

This commit is contained in:
Lorenz Meier
2015-10-10 16:02:29 +02:00
parent 348c480feb
commit 228cc8844e
+2 -2
View File
@@ -860,8 +860,8 @@ start(void)
px4_sem_init(&g_init_sema, 1, 0);
/* start the worker thread */
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT, 1500, task_main, NULL)) <= 0) {
/* start the worker thread with low priority for disk IO */
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT - 10, 1500, task_main, NULL)) <= 0) {
warn("task start failed");
return -1;
}