source: rtems/cpukit/score/src/corerwlocktimeout.c @ 37c7bfcb

4.104.114.84.95
Last change on this file since 37c7bfcb was 5fdca8a, checked in by Joel Sherrill <joel.sherrill@…>, on 11/15/06 at 14:15:24

2006-11-15 Joel Sherrill <joel.sherrill@…>

  • score/inline/rtems/score/threadq.inl, score/src/corerwlocktimeout.c: New files.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  Thread Queue Handler
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems/system.h>
20#include <rtems/score/corerwlock.h>
21#include <rtems/score/corerwlock.h>
22
23/*
24 *  _CORE_RWLock_Timeout
25 *
26 *  This routine processes a thread which timeouts while waiting on
27 *  a thread queue. It is called by the watchdog handler.
28 *
29 *  Input parameters:
30 *    id - thread id
31 *
32 *  Output parameters: NONE
33 */
34
35void _CORE_RWLock_Timeout(
36  Objects_Id  id,
37  void       *ignored
38)
39{
40  Thread_Control       *the_thread;
41  Objects_Locations     location;
42
43  the_thread = _Thread_Get( id, &location );
44  switch ( location ) {
45    case OBJECTS_ERROR:
46    case OBJECTS_REMOTE:  /* impossible */
47      break;
48    case OBJECTS_LOCAL:
49      _Thread_queue_Process_timeout( the_thread );
50      _Thread_Unnest_dispatch();
51      break;
52  }
53}
Note: See TracBrowser for help on using the repository browser.