RTEMS | cpukit/rtems: Add taskgetcpuusage.c directive (!1347)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Jul 15 15:37:32 UTC 2026




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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260715/26908963/attachment-0001.htm>


More information about the bugs mailing list