source: rtems/cpukit/score/src/threaddelayended.c @ 4f5baff

4.115
Last change on this file since 4f5baff was bf54252, checked in by Alexandre Devienne <deviennealexandre@…>, on 11/28/12 at 20:14:50

Score misc: Clean up Doxygen #4 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7985215

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @brief End the Delay of a Thread
5 * @ingroup ScoreThread
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2007.
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
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/system.h>
22#include <rtems/score/apiext.h>
23#include <rtems/score/context.h>
24#include <rtems/score/interr.h>
25#include <rtems/score/isr.h>
26#include <rtems/score/object.h>
27#include <rtems/score/priority.h>
28#include <rtems/score/states.h>
29#include <rtems/score/sysstate.h>
30#include <rtems/score/thread.h>
31#include <rtems/score/threadq.h>
32#include <rtems/score/wkspace.h>
33
34void _Thread_Delay_ended(
35  Objects_Id  id,
36  void       *ignored __attribute__((unused))
37)
38{
39  Thread_Control    *the_thread;
40  Objects_Locations  location;
41
42  the_thread = _Thread_Get( id, &location );
43  switch ( location ) {
44    case OBJECTS_ERROR:
45#if defined(RTEMS_MULTIPROCESSING)
46    case OBJECTS_REMOTE:  /* impossible */
47#endif
48      break;
49    case OBJECTS_LOCAL:
50      _Thread_Clear_state(
51        the_thread,
52        STATES_DELAYING
53          | STATES_WAITING_FOR_TIME
54          | STATES_INTERRUPTIBLE_BY_SIGNAL
55      );
56      _Thread_Unnest_dispatch();
57      break;
58  }
59}
Note: See TracBrowser for help on using the repository browser.