OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [inline/] [rtems/] [score/] [threadmp.inl] - Blame information for rev 621

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  inline/threadmp.inl
2
 *
3
 *  This include file contains the bodies of all inlined routines
4
 *  for the multiprocessing part of thread package.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: threadmp.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __INLINE_MP_THREAD_inl
17
#define __INLINE_MP_THREAD_inl
18
 
19
/*PAGE
20
 *
21
 *  _Thread_MP_Is_receive
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This function returns true if the thread in question is the
26
 *  multiprocessing receive thread.
27
 */
28
 
29
RTEMS_INLINE_ROUTINE boolean _Thread_MP_Is_receive (
30
  Thread_Control *the_thread
31
)
32
{
33
  return the_thread == _Thread_MP_Receive;
34
}
35
 
36
/*PAGE
37
 *
38
 *  _Thread_MP_Free_proxy
39
 *
40
 *  DESCRIPTION:
41
 *
42
 *  This routine frees a proxy control block to the
43
 *  inactive chain of free proxy control blocks.
44
 */
45
 
46
RTEMS_INLINE_ROUTINE void _Thread_MP_Free_proxy (
47
  Thread_Control *the_thread
48
)
49
{
50
  Thread_Proxy_control *the_proxy;
51
 
52
  the_proxy = (Thread_Proxy_control *) the_thread;
53
 
54
  _Chain_Extract( &the_proxy->Active );
55
 
56
  _Chain_Append( &_Thread_MP_Inactive_proxies, &the_thread->Object.Node );
57
}
58
 
59
#endif
60
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.