source: rtems/cpukit/rtems/src/ratemonresetstatistics.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: 938 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicRateMon Rate Monotonic Scheduler
5 *
6 * @brief RTEMS Rate Monotonic Reset Statistics
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2007.
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
24rtems_status_code rtems_rate_monotonic_reset_statistics(
25  rtems_id id
26)
27{
28  Rate_monotonic_Control *the_period;
29  ISR_lock_Context        lock_context;
30
31  the_period = _Rate_monotonic_Get( id, &lock_context );
32  if ( the_period == NULL ) {
33    return RTEMS_INVALID_ID;
34  }
35
36  _Rate_monotonic_Acquire_critical( the_period, &lock_context );
37  _Rate_monotonic_Reset_statistics( the_period );
38  _Rate_monotonic_Release( the_period, &lock_context );
39  return RTEMS_SUCCESSFUL;
40}
Note: See TracBrowser for help on using the repository browser.