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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 30 unneback
/*  macros/threadmp.h
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 __MACROS_MP_THREAD_h
17
#define __MACROS_MP_THREAD_h
18
 
19
/*PAGE
20
 *
21
 *  _Thread_MP_Is_receive
22
 *
23
 */
24
 
25
#define _Thread_MP_Is_receive( _the_thread ) \
26
  ( (_the_thread) == _Thread_MP_Receive)
27
 
28
/*PAGE
29
 *
30
 *  _Thread_MP_Free_proxy
31
 *
32
 */
33
 
34
#define _Thread_MP_Free_proxy( _the_thread ) \
35
{ \
36
  Thread_Proxy_control *_the_proxy; \
37
 \
38
  _the_proxy = (Thread_Proxy_control *) (_the_thread); \
39
 \
40
  _Chain_Extract( &_the_proxy->Active ); \
41
 \
42
  _Chain_Append( \
43
    &_Thread_MP_Inactive_proxies, \
44
    &(_the_thread)->Object.Node \
45
  ); \
46
}
47
 
48
#endif
49
/* end of include file */

powered by: WebSVN 2.1.0

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