source: rtems/cpukit/score/src/coremsgflushwait.c @ 439c494

4.115
Last change on this file since 439c494 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @brief Flush Waiting Threads.
5 *
6 * @ingroup ScoreMessageQueue
7 */
8
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.org/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/system.h>
23#include <rtems/score/chain.h>
24#include <rtems/score/isr.h>
25#include <rtems/score/coremsgimpl.h>
26#include <rtems/score/thread.h>
27#include <rtems/score/wkspace.h>
28
29#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
30
31  void _CORE_message_queue_Flush_waiting_threads(
32    CORE_message_queue_Control *the_message_queue
33  )
34  {
35    /* XXX this is not supported for global message queues */
36
37    /*
38     *  IF there are no pending messages,
39     *  THEN threads may be blocked waiting to RECEIVE a message,
40     *
41     *  IF the pending message queue is full
42     *  THEN threads may be blocked waiting to SEND a message
43     *
44     *  But in either case, we will return "unsatisfied nowait"
45     *  to indicate that the blocking condition was not satisfied
46     *  and that the blocking state was canceled.
47     */
48
49    _Thread_queue_Flush(
50      &the_message_queue->Wait_queue,
51      NULL,
52      CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT
53    );
54  }
55#endif
Note: See TracBrowser for help on using the repository browser.