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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [macros/] [rtems/] [score/] [tqdata.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  tqdata.inl
2
 *
3
 *  This file contains the macro implementation of the inlined
4
 *  routines needed to support the Thread Queue Data.
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
 *  tqdata.inl,v 1.11 1999/11/17 17:50:38 joel Exp
14
 */
15
 
16
#ifndef __THREAD_QUEUE_DATA_inl
17
#define __THREAD_QUEUE_DATA_inl
18
 
19
/*PAGE
20
 *
21
 *  _Thread_queue_Header_number
22
 *
23
 */
24
 
25
#define _Thread_queue_Header_number( _the_priority ) \
26
    ((_the_priority) / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER)
27
 
28
/*PAGE
29
 *
30
 *  _Thread_queue_Is_reverse_search
31
 *
32
 */
33
 
34
#define _Thread_queue_Is_reverse_search( _the_priority ) \
35
     ( (_the_priority) & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK )
36
 
37
/*PAGE
38
 *
39
 *  _Thread_queue_Enter_critical_section
40
 *
41
 */
42
 
43
#define _Thread_queue_Enter_critical_section( _the_thread_queue ) \
44
  do { \
45
    (_the_thread_queue)->sync_state = THREAD_QUEUE_NOTHING_HAPPENED; \
46
  } while ( 0 )
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.