source: rtems/c/src/exec/itron/src/rel_wai.c @ 3971537

4.104.114.84.95
Last change on this file since 3971537 was 3971537, checked in by Joel Sherrill <joel.sherrill@…>, on 11/12/99 at 21:20:04

+ Changed validation of the_thread to validation of location.

  • Property mode set to 100644
File size: 913 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.OARcorp.com/rtems/license.html.
5 *
6 *  $Id$
7 */
8
9#include <itron.h>
10
11#include <rtems/score/thread.h>
12#include <rtems/score/userext.h>
13#include <rtems/score/wkspace.h>
14#include <rtems/score/apiext.h>
15#include <rtems/score/sysstate.h>
16
17#include <rtems/itron/task.h>
18
19/*
20 *  rel_wai - Release Wait of Other Task
21 */
22
23ER rel_wai(
24  ID tskid
25)
26{
27  register Thread_Control *the_thread;
28  Objects_Locations        location;
29
30  the_thread = _ITRON_Task_Get( tskid, &location );
31  switch ( location ) {
32    case OBJECTS_REMOTE:
33    case OBJECTS_ERROR:
34      _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
35
36    case OBJECTS_LOCAL:
37      /*
38       * XXX - FILL ME IN.
39       */
40      return E_OK;
41  }
42
43  return E_OBJ;           /* XXX - Should never get here */
44}
45
46
47
Note: See TracBrowser for help on using the repository browser.