source: rtems/cpukit/score/inline/rtems/score/corespinlock.inl @ 1f0d013

4.115
Last change on this file since 1f0d013 was 1f0d013, checked in by Alex Ivanov <alexivanov97@…>, on 01/09/13 at 13:56:28

score: Doxygen Clean Up Task #17

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