4.115
Last change
on this file since d7c3883 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.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * CORE Semaphore Handler |
---|
3 | * |
---|
4 | * DESCRIPTION: |
---|
5 | * |
---|
6 | * This package is the implementation of the CORE Semaphore Handler. |
---|
7 | * This core object utilizes standard Dijkstra counting semaphores to provide |
---|
8 | * synchronization and mutual exclusion capabilities. |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-1999. |
---|
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 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #if HAVE_CONFIG_H |
---|
21 | #include "config.h" |
---|
22 | #endif |
---|
23 | |
---|
24 | #include <rtems/system.h> |
---|
25 | #include <rtems/score/isr.h> |
---|
26 | #include <rtems/score/coresem.h> |
---|
27 | #include <rtems/score/states.h> |
---|
28 | #include <rtems/score/thread.h> |
---|
29 | #include <rtems/score/threadq.h> |
---|
30 | |
---|
31 | /*PAGE |
---|
32 | * |
---|
33 | * _CORE_semaphore_Flush |
---|
34 | * |
---|
35 | * This function a flushes the semaphore's task wait queue. |
---|
36 | * |
---|
37 | * Input parameters: |
---|
38 | * the_semaphore - the semaphore to be flushed |
---|
39 | * remote_extract_callout - function to invoke remotely |
---|
40 | * status - status to pass to thread |
---|
41 | * |
---|
42 | * Output parameters: NONE |
---|
43 | */ |
---|
44 | |
---|
45 | void _CORE_semaphore_Flush( |
---|
46 | CORE_semaphore_Control *the_semaphore, |
---|
47 | Thread_queue_Flush_callout remote_extract_callout, |
---|
48 | uint32_t status |
---|
49 | ) |
---|
50 | { |
---|
51 | |
---|
52 | _Thread_queue_Flush( |
---|
53 | &the_semaphore->Wait_queue, |
---|
54 | remote_extract_callout, |
---|
55 | status |
---|
56 | ); |
---|
57 | |
---|
58 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.