MCPcopy Create free account
hub / github.com/apache/nuttx / work_start_lowpri

Function work_start_lowpri

sched/wqueue/kwork_thread.c:595–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593
594#ifdef CONFIG_SCHED_LPWORK
595int work_start_lowpri(void)
596{
597 /* Start the low-priority, kernel mode worker thread(s) */
598
599 sinfo("Starting low-priority kernel worker thread(s)\n");
600
601#ifdef SCHED_LPWORKSTACKSECTION
602 static uint8_t lp_work_stack[CONFIG_SCHED_LPNTHREADS]
603 [CONFIG_SCHED_LPWORKSTACKSIZE]
604 locate_data(CONFIG_SCHED_LPWORKSTACKSECTION);
605
606 return work_thread_create(LPWORKNAME,
607 CONFIG_SCHED_LPWORKPRIORITY,
608 lp_work_stack,
609 CONFIG_SCHED_LPWORKSTACKSIZE,
610 (FAR struct kwork_wqueue_s *)&g_lpwork);
611#else
612 return work_thread_create(LPWORKNAME,
613 CONFIG_SCHED_LPWORKPRIORITY, NULL,
614 CONFIG_SCHED_LPWORKSTACKSIZE,
615 (FAR struct kwork_wqueue_s *)&g_lpwork);
616#endif
617}
618#endif /* CONFIG_SCHED_LPWORK */
619
620#endif /* CONFIG_SCHED_WORKQUEUE */

Callers 1

nx_workqueuesFunction · 0.85

Calls 1

work_thread_createFunction · 0.85

Tested by

no test coverage detected