| 357 | |
| 358 | #ifdef CONFIG_PIC |
| 359 | static 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 |
no test coverage detected