4.104.114.84.95
Rev | Line | |
---|
[3a4ae6c] | 1 | /* inline/coresem.inl |
---|
| 2 | * |
---|
| 3 | * This include file contains all of the inlined routines associated |
---|
| 4 | * with the CORE semaphore. |
---|
| 5 | * |
---|
[08311cc3] | 6 | * COPYRIGHT (c) 1989-1999. |
---|
[3a4ae6c] | 7 | * On-Line Applications Research Corporation (OAR). |
---|
| 8 | * |
---|
[98e4ebf5] | 9 | * The license and distribution terms for this file may be |
---|
| 10 | * found in the file LICENSE in this distribution or at |
---|
[03f2154e] | 11 | * http://www.OARcorp.com/rtems/license.html. |
---|
[3a4ae6c] | 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #ifndef __INLINE_CORE_SEMAPHORE_inl |
---|
| 17 | #define __INLINE_CORE_SEMAPHORE_inl |
---|
| 18 | |
---|
| 19 | /*PAGE |
---|
| 20 | * |
---|
| 21 | * _CORE_semaphore_Is_priority |
---|
| 22 | * |
---|
[1a8fde6c] | 23 | * DESCRIPTION: |
---|
| 24 | * |
---|
| 25 | * This function returns TRUE if the priority attribute is |
---|
| 26 | * enabled in the attribute_set and FALSE otherwise. |
---|
[3a4ae6c] | 27 | */ |
---|
| 28 | |
---|
[503dc058] | 29 | RTEMS_INLINE_ROUTINE boolean _CORE_semaphore_Is_priority( |
---|
[3a4ae6c] | 30 | CORE_semaphore_Attributes *the_attribute |
---|
| 31 | ) |
---|
| 32 | { |
---|
| 33 | return ( the_attribute->discipline == CORE_SEMAPHORE_DISCIPLINES_PRIORITY ); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | /*PAGE |
---|
| 37 | * |
---|
| 38 | * _CORE_semaphore_Get_count |
---|
| 39 | * |
---|
[1a8fde6c] | 40 | * DESCRIPTION: |
---|
| 41 | * |
---|
| 42 | * This routine returns the current count associated with the semaphore. |
---|
[3a4ae6c] | 43 | */ |
---|
| 44 | |
---|
[503dc058] | 45 | RTEMS_INLINE_ROUTINE unsigned32 _CORE_semaphore_Get_count( |
---|
[3a4ae6c] | 46 | CORE_semaphore_Control *the_semaphore |
---|
| 47 | ) |
---|
| 48 | { |
---|
| 49 | return the_semaphore->count; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | #endif |
---|
| 53 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.