source: rtems/cpukit/score/src/corespinlock.c @ 4fc370e

4.115
Last change on this file since 4fc370e was d4d7899, checked in by Christopher Kerl <zargyyoyo@…>, on 11/28/12 at 19:31:53

score misc: Clean up Doxygen #2 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7986213

  • Property mode set to 100644
File size: 836 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Initialize a Spinlock
5 *
6 * @ingroup ScoreSpinlock
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2006.
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.com/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/system.h>
23#include <rtems/score/corespinlock.h>
24#include <rtems/score/states.h>
25#include <rtems/score/thread.h>
26#include <rtems/score/threadq.h>
27
28void _CORE_spinlock_Initialize(
29  CORE_spinlock_Control       *the_spinlock,
30  CORE_spinlock_Attributes    *the_spinlock_attributes
31)
32{
33
34  the_spinlock->Attributes                = *the_spinlock_attributes;
35
36  the_spinlock->lock   = 0;
37  the_spinlock->users  = 0;
38  the_spinlock->holder = 0;
39}
Note: See TracBrowser for help on using the repository browser.