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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [include/] [rtems/] [score/] [threadmp.h] - Rev 593

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

/*  threadmp.h
 *
 *  This include file contains the specification for all routines
 *  and data specific to the multiprocessing portion of the thread package.
 *
 *  COPYRIGHT (c) 1989-1999.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.OARcorp.com/rtems/license.html.
 *
 *  $Id: threadmp.h,v 1.2 2001-09-27 11:59:32 chris Exp $
 */
 
#ifndef __RTEMS_THREAD_MP_h
#define __RTEMS_THREAD_MP_h
 
#ifdef __cplusplus
extern "C" {
#endif
 
/*
 *  _Thread_MP_Handler_initialization
 *
 *  DESCRIPTION:
 *
 *  This routine initializes the multiprocessing portion of the Thread Handler.
 */
 
void _Thread_MP_Handler_initialization (
  unsigned32 maximum_proxies
);
 
/*
 *  _Thread_MP_Allocate_proxy
 *
 *  DESCRIPTION:
 *
 *  This  allocates a proxy control block from
 *  the inactive chain of free proxy control blocks.
 *
 *  NOTE: This function returns a thread control pointer
 *        because proxies are substitutes for remote threads.
 */
 
Thread_Control *_Thread_MP_Allocate_proxy (
  States_Control the_state
);
 
/*
 *  _Thread_MP_Find_proxy
 *
 *  DESCRIPTION:
 *
 *  This function removes the proxy control block for the specified
 *  id from the active chain of proxy control blocks.
 */
 
Thread_Control *_Thread_MP_Find_proxy (
  Objects_Id the_id
);
 
/*
 *  The following is used to determine when the multiprocessing receive
 *  thread is executing so that a proxy can be allocated instead of
 *  blocking the multiprocessing receive thread.
 */
 
SCORE_EXTERN Thread_Control *_Thread_MP_Receive;
 
/*
 * The following chains are used to manage proxies.
 */
 
SCORE_EXTERN Chain_Control _Thread_MP_Active_proxies;
SCORE_EXTERN Chain_Control _Thread_MP_Inactive_proxies;
 
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/threadmp.inl>
#endif
 
#ifdef __cplusplus
}
#endif
 
#endif
/* end of include file */
 

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

powered by: WebSVN 2.1.0

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