source: rtems/cpukit/score/inline/rtems/score/corespinlock.inl @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 *  @file  rtems/score/corespinlock.inl
3 *
4 *  This include file contains all of the inlined routines associated
5 *  with the SuperCore spinlock.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#ifndef _RTEMS_SCORE_CORESPINLOCK_H
18# error "Never use <rtems/score/corespinlock.inl> directly; include <rtems/score/corespinlock.h> instead."
19#endif
20
21#ifndef _RTEMS_SCORE_CORESPINLOCK_INL
22#define _RTEMS_SCORE_CORESPINLOCK_INL
23
24/**
25 *  @addtogroup ScoreSpinlock
26 *  @{
27 */
28
29/**
30 *
31 *  This method is used to initialize core spinlock attributes.
32 *
33 *  @param[in] the_attributes pointer to the attributes to initialize.
34 */
35RTEMS_INLINE_ROUTINE void _CORE_spinlock_Initialize_attributes(
36  CORE_spinlock_Attributes *the_attributes
37)
38{
39  the_attributes->XXX = 0;
40}
41
42/**
43 *
44 *  This method is used to determine if the spinlock is available or not.
45 *
46 *  @param[in] the_spinlock will be checked
47 *
48 *  @return This method will return true if the spinlock is busy
49 *          and false otherwise.
50 */
51RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy(
52  CORE_spinlock_Control  *the_spinlock
53)
54{
55  return (the_spinlock->users != 0);
56}
57
58/**@}*/
59
60#endif
61/* end of include file */
Note: See TracBrowser for help on using the repository browser.