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

Function nxtask_dup_dspace

sched/task/task_setup.c:359–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357
358#ifdef CONFIG_PIC
359static inline void nxtask_dup_dspace(FAR struct tcb_s *tcb)
360{
361 FAR struct tcb_s *rtcb = this_task();
362 if (rtcb->dspace != NULL)
363 {
364 /* Copy the D-Space structure reference and increment the reference
365 * count on the memory. The D-Space memory will persist until the
366 * last thread exits (see nxsched_release_tcb()).
367 */
368
369 tcb->dspace = rtcb->dspace;
370 tcb->dspace->crefs++;
371 }
372}
373#else
374# define nxtask_dup_dspace(tcb)
375#endif

Callers 1

nxthread_setup_schedulerFunction · 0.85

Calls 1

this_taskFunction · 0.85

Tested by

no test coverage detected