source: rtems/cpukit/rtems/src/ratemonresetall.c @ cfe8f7a

5
Last change on this file since cfe8f7a was cfe8f7a, checked in by Sebastian Huber <sebastian.huber@…>, on 04/27/20 at 14:14:06

doxygen: Switch @brief and @ingroup

This order change fixes the Latex documentation build via Doxygen.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicRateMon Rate Monotonic Scheduler
5 *
6 * @brief rtems_rate_monotonic_reset_all_statistics
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2010.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/rtems/ratemonimpl.h>
23
24/*
25 *  rtems_rate_monotonic_reset_all_statistics
26 */
27void rtems_rate_monotonic_reset_all_statistics( void )
28{
29  rtems_id maximum_id;
30  rtems_id id;
31
32   /*
33    * Prevent allocation or deallocation of any of the periods while we are
34    * cycling.
35    */
36  _Objects_Allocator_lock();
37
38    /*
39     * Cycle through all possible ids and try to reset each one.  If it
40     * is a period that is inactive, we just get an error back.  No big deal.
41     */
42    maximum_id = _Rate_monotonic_Information.maximum_id;
43    for (
44      id = _Objects_Get_minimum_id( maximum_id ) ;
45      id <= maximum_id ;
46      ++id
47    ) {
48      (void) rtems_rate_monotonic_reset_statistics( id );
49    }
50
51  _Objects_Allocator_unlock();
52}
Note: See TracBrowser for help on using the repository browser.