source: rtems/cpukit/rtems/src/barrierrelease.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: 985 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicBarrier Barriers
5 *
6 * @brief RTEMS Barrier Release
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/barrierimpl.h>
23
24rtems_status_code rtems_barrier_release(
25  rtems_id          id,
26  uint32_t         *released
27)
28{
29  Barrier_Control      *the_barrier;
30  Thread_queue_Context  queue_context;
31
32  if ( released == NULL ) {
33    return RTEMS_INVALID_ADDRESS;
34  }
35
36  the_barrier = _Barrier_Get( id, &queue_context );
37
38  if ( the_barrier == NULL ) {
39    return RTEMS_INVALID_ID;
40  }
41
42  _CORE_barrier_Acquire_critical( &the_barrier->Barrier, &queue_context );
43  *released = _CORE_barrier_Surrender(
44    &the_barrier->Barrier,
45    &queue_context
46  );
47  return RTEMS_SUCCESSFUL;
48}
Note: See TracBrowser for help on using the repository browser.