4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * Mutex Handler |
---|
3 | * |
---|
4 | * DESCRIPTION: |
---|
5 | * |
---|
6 | * This package is the implementation of the Mutex Handler. |
---|
7 | * This handler provides synchronization and mutual exclusion capabilities. |
---|
8 | * |
---|
9 | * COPYRIGHT (c) 1989-1999. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #if HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <rtems/system.h> |
---|
24 | #include <rtems/score/isr.h> |
---|
25 | #include <rtems/score/coremutex.h> |
---|
26 | #include <rtems/score/states.h> |
---|
27 | #include <rtems/score/thread.h> |
---|
28 | #include <rtems/score/threadq.h> |
---|
29 | |
---|
30 | /*PAGE |
---|
31 | * |
---|
32 | * _CORE_mutex_Flush |
---|
33 | * |
---|
34 | * This function a flushes the mutex's task wait queue. |
---|
35 | * |
---|
36 | * Input parameters: |
---|
37 | * the_mutex - the mutex to be flushed |
---|
38 | * remote_extract_callout - function to invoke remotely |
---|
39 | * status - status to pass to thread |
---|
40 | * |
---|
41 | * Output parameters: NONE |
---|
42 | */ |
---|
43 | |
---|
44 | void _CORE_mutex_Flush( |
---|
45 | CORE_mutex_Control *the_mutex, |
---|
46 | Thread_queue_Flush_callout remote_extract_callout, |
---|
47 | uint32_t status |
---|
48 | ) |
---|
49 | { |
---|
50 | _Thread_queue_Flush( |
---|
51 | &the_mutex->Wait_queue, |
---|
52 | remote_extract_callout, |
---|
53 | status |
---|
54 | ); |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.