4.104.114.95
Last change
on this file since 8daaa215 was
8daaa215,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/08 at 21:11:04
|
2008-01-09 Joel Sherrill <joel.sherrill@…>
- score/include/rtems/score/coremutex.h,
score/src/coremutexseizeintr.c: Fix conditional code for inlining
_CORE_mutex_Seize_interrupt_trylock() and add comments.
|
-
Property mode set to
100644
|
File size:
800 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Mutex Handler -- Seize interrupt disable version |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2007. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #if HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <rtems/system.h> |
---|
19 | #include <rtems/score/isr.h> |
---|
20 | #include <rtems/score/coremutex.h> |
---|
21 | #include <rtems/score/states.h> |
---|
22 | #include <rtems/score/thread.h> |
---|
23 | #include <rtems/score/threadq.h> |
---|
24 | |
---|
25 | #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) |
---|
26 | int _CORE_mutex_Seize_interrupt_trylock( |
---|
27 | CORE_mutex_Control *the_mutex, |
---|
28 | ISR_Level *level_p |
---|
29 | ) |
---|
30 | { |
---|
31 | return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); |
---|
32 | } |
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.