source: rtems/cpukit/sapi/src/chainprependnotify.c @ 3db9c820

Last change on this file since 3db9c820 was 3db9c820, checked in by Sebastian Huber <sebastian.huber@…>, on 11/28/20 at 10:16:28

sapi: Canonicalize @defgroup and @file comments

Adjust group identifier and names to be in line with a common pattern.
Use common phrases for the group and file brief descriptions.

Update #3706.

  • Property mode set to 100644
File size: 940 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSAPIClassicChains
5 *
6 * @brief This source file contains the implementation of
7 *   rtems_chain_prepend_with_notification().
8 */
9
10/*
11 * Copyright (c) 2010 embedded brains GmbH.  All rights reserved.
12 *
13 *  embedded brains GmbH
14 *  Obere Lagerstr. 30
15 *  82178 Puchheim
16 *  Germany
17 *  <rtems@embedded-brains.de>
18 *
19 * The license and distribution terms for this file may be
20 * found in the file LICENSE in this distribution or at
21 * http://www.rtems.org/license/LICENSE.
22 */
23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <rtems/chain.h>
29
30rtems_status_code rtems_chain_prepend_with_notification(
31  rtems_chain_control *chain,
32  rtems_chain_node *node,
33  rtems_id task,
34  rtems_event_set events
35)
36{
37  rtems_status_code sc = RTEMS_SUCCESSFUL;
38  bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
39
40  if (was_empty) {
41    sc = rtems_event_send( task, events );
42  }
43
44  return sc;
45}
Note: See TracBrowser for help on using the repository browser.