source: rtems/cpukit/score/src/coremsgflushwait.c @ 8a8b95aa

5
Last change on this file since 8a8b95aa was 4c20da4b, checked in by Sebastian Huber <sebastian.huber@…>, on 04/04/19 at 07:18:11

doxygen: Rename Score* groups in RTEMSScore*

Update #3706

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