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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [gthr-gnat.h] - Blame information for rev 841

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

Line No. Rev Author Line
1 38 julius
/* Threads compatibility routines for libgcc2.  */
2
/* Compile this one with gcc.  */
3
/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify it under
8
the terms of the GNU General Public License as published by the Free
9
Software Foundation; either version 2, or (at your option) any later
10
version.
11
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING.  If not, write to the Free
18
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301, USA.  */
20
 
21
/* As a special exception, if you link this library with other files,
22
   some of which are compiled with GCC, to produce an executable,
23
   this library does not by itself cause the resulting executable
24
   to be covered by the GNU General Public License.
25
   This exception does not however invalidate any other reasons why
26
   the executable file might be covered by the GNU General Public License.  */
27
 
28
#ifndef GCC_GTHR_GNAT_H
29
#define GCC_GTHR_GNAT_H
30
 
31
#ifndef HIDE_EXPORTS
32
#pragma GCC visibility push(default)
33
#endif
34
 
35
/* Just provide compatibility for mutex handling.  */
36
 
37
typedef int __gthread_mutex_t;
38
 
39
#define __GTHREAD_MUTEX_INIT 0
40
 
41
extern void __gnat_install_locks (void (*lock) (void), void (*unlock) (void));
42
extern int __gthread_active_p (void);
43
extern int __gthread_mutex_lock (__gthread_mutex_t *);
44
extern int __gthread_mutex_unlock (__gthread_mutex_t *);
45
 
46
#ifndef HIDE_EXPORTS
47
#pragma GCC visibility pop
48
#endif
49
 
50
#endif /* ! GCC_GTHR_GNAT_H */
51
 

powered by: WebSVN 2.1.0

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