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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [gthr-gnat.h] - Blame information for rev 280

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 280 jeremybenn
/* Threads compatibility routines for libgcc2.  */
2
/* Compile this one with gcc.  */
3
/* Copyright (C) 2003, 2004, 2008, 2009 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 3, 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
Under Section 7 of GPL version 3, you are granted additional
17
permissions described in the GCC Runtime Library Exception, version
18
3.1, as published by the Free Software Foundation.
19
 
20
You should have received a copy of the GNU General Public License and
21
a copy of the GCC Runtime Library Exception along with this program;
22
see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23
<http://www.gnu.org/licenses/>.  */
24
 
25
#ifndef GCC_GTHR_GNAT_H
26
#define GCC_GTHR_GNAT_H
27
 
28
#ifndef HIDE_EXPORTS
29
#pragma GCC visibility push(default)
30
#endif
31
 
32
/* Just provide compatibility for mutex handling.  */
33
 
34
typedef int __gthread_mutex_t;
35
 
36
#define __GTHREAD_MUTEX_INIT 0
37
 
38
extern void __gnat_install_locks (void (*) (void), void (*) (void));
39
extern int __gthread_active_p (void);
40
extern int __gthread_mutex_lock (__gthread_mutex_t *);
41
extern int __gthread_mutex_unlock (__gthread_mutex_t *);
42
 
43
#ifndef HIDE_EXPORTS
44
#pragma GCC visibility pop
45
#endif
46
 
47
#endif /* ! GCC_GTHR_GNAT_H */
48
 

powered by: WebSVN 2.1.0

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