source: rtems/cpukit/score/src/corespinlock.c @ e3f6d35

4.10
Last change on this file since e3f6d35 was b3836ce, checked in by Joel Sherrill <joel.sherrill@…>, on 09/05/08 at 21:54:20

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • score/src/corebarrier.c, score/src/corebarrierrelease.c, score/src/corebarrierwait.c, score/src/coremsg.c, score/src/coremsgbroadcast.c, score/src/coremsgclose.c, score/src/coremsgflush.c, score/src/coremsgflushsupp.c, score/src/coremsgflushwait.c, score/src/coremsginsert.c, score/src/coremsgseize.c, score/src/coremsgsubmit.c, score/src/corerwlock.c, score/src/coresem.c, score/src/coresemflush.c, score/src/coresemseize.c, score/src/coresemsurrender.c, score/src/corespinlock.c, score/src/threadblockingoperationcancel.c, score/src/threadqenqueue.c: Remove unnecessary include of mpci.h.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  SuperCore Spinlock Handler
3 *
4 *  DESCRIPTION:
5 *
6 *  This package is part of the implementation of the SuperCore Spinlock Handler.
7 *
8 *  COPYRIGHT (c) 1989-2006.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
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
28/*PAGE
29 *
30 *  _CORE_spinlock_Initialize
31 *
32 *  This function initialize a spinlock and sets the initial value based
33 *  on the given count.
34 *
35 *  Input parameters:
36 *    the_spinlock            - the spinlock control block to initialize
37 *    the_spinlock_attributes - the attributes specified at create time
38 *
39 *  Output parameters:  NONE
40 */
41
42void _CORE_spinlock_Initialize(
43  CORE_spinlock_Control       *the_spinlock,
44  CORE_spinlock_Attributes    *the_spinlock_attributes
45)
46{
47
48  the_spinlock->Attributes                = *the_spinlock_attributes;
49
50  the_spinlock->lock   = 0;
51  the_spinlock->users  = 0;
52  the_spinlock->holder = 0;
53}
Note: See TracBrowser for help on using the repository browser.