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

Function work_start_highpri

sched/wqueue/kwork_thread.c:555–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553
554#ifdef CONFIG_SCHED_HPWORK
555int work_start_highpri(void)
556{
557 /* Start the high-priority, kernel mode worker thread(s) */
558
559 sinfo("Starting high-priority kernel worker thread(s)\n");
560
561#ifdef SCHED_HPWORKSTACKSECTION
562 static uint8_t hp_work_stack[CONFIG_SCHED_HPNTHREADS]
563 [CONFIG_SCHED_HPWORKSTACKSIZE]
564 locate_data(CONFIG_SCHED_HPWORKSTACKSECTION);
565
566 return work_thread_create(HPWORKNAME,
567 CONFIG_SCHED_HPWORKPRIORITY,
568 hp_work_stack,
569 CONFIG_SCHED_HPWORKSTACKSIZE,
570 (FAR struct kwork_wqueue_s *)&g_hpwork);
571#else
572 return work_thread_create(HPWORKNAME, CONFIG_SCHED_HPWORKPRIORITY, NULL,
573 CONFIG_SCHED_HPWORKSTACKSIZE,
574 (FAR struct kwork_wqueue_s *)&g_hpwork);
575#endif
576}
577#endif /* CONFIG_SCHED_HPWORK */
578
579/****************************************************************************

Callers 1

nx_workqueuesFunction · 0.85

Calls 1

work_thread_createFunction · 0.85

Tested by

no test coverage detected