Gedare Bloom started a new discussion on cpukit/rtems/src/taskgetcpuusage.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1347#note_154496 > + Thread_Control *the_thread; > + ISR_lock_Context lock_context; > + Timestamp_Control used; > + the_thread = _Thread_Get( id, &lock_context ); > + > + if ( the_thread == NULL ) { > + return RTEMS_INVALID_ID; > + } > + > + used = _Thread_Get_CPU_time_used( the_thread ); > + _ISR_lock_ISR_enable( &lock_context ); > + _Timestamp_To_timespec( &used, ts ); > + return RTEMS_SUCCESSFUL; > +} > + > + delete -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1347#note_154496 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-0xzhpnduezj4boazl2ak654j9-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
