source: rtems/c/src/exec/score/src/coremutexflush.c @ 7cc8d6c

4.104.114.84.95
Last change on this file since 7cc8d6c was 7cc8d6c, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/99 at 21:48:15

Split core mutex and semaphore handlers into separate files.

  • Property mode set to 100644
File size: 1.2 KB
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-1998.
10 *  On-Line Applications Research Corporation (OAR).
11 *  Copyright assigned to U.S. Government, 1994.
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.OARcorp.com/rtems/license.html.
16 *
17 *  $Id$
18 */
19
20#include <rtems/system.h>
21#include <rtems/score/isr.h>
22#include <rtems/score/coremutex.h>
23#include <rtems/score/states.h>
24#include <rtems/score/thread.h>
25#include <rtems/score/threadq.h>
26
27/*PAGE
28 *
29 *  _CORE_mutex_Flush
30 *
31 *  This function a flushes the mutex's task wait queue.
32 *
33 *  Input parameters:
34 *    the_mutex              - the mutex to be flushed
35 *    remote_extract_callout - function to invoke remotely
36 *    status                 - status to pass to thread
37 *
38 *  Output parameters:  NONE
39 */
40
41void _CORE_mutex_Flush(
42  CORE_mutex_Control         *the_mutex,
43  Thread_queue_Flush_callout  remote_extract_callout,
44  unsigned32                  status
45)
46{
47  _Thread_queue_Flush(
48    &the_mutex->Wait_queue,
49    remote_extract_callout,
50    status
51  );
52}
Note: See TracBrowser for help on using the repository browser.