Rev 4383 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4383 | Rev 5963 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* Threads compatibility routines for libgcc2 and libobjc. */ |
1 | /* Threads compatibility routines for libgcc2 and libobjc. */ |
2 | /* Compile this one with gcc. */ |
2 | /* Compile this one with gcc. */ |
3 | /* Copyright (C) 1997, 1999, 2000, 2004, 2008, 2009 |
- | |
4 | Free Software Foundation, Inc. |
3 | /* Copyright (C) 1997-2013 Free Software Foundation, Inc. |
Line 5... | Line 4... | ||
5 | 4 | ||
Line 6... | Line 5... | ||
6 | This file is part of GCC. |
5 | This file is part of GCC. |
7 | 6 | ||
Line 34... | Line 33... | ||
34 | typedef int __gthread_mutex_t; |
33 | typedef int __gthread_mutex_t; |
35 | typedef int __gthread_recursive_mutex_t; |
34 | typedef int __gthread_recursive_mutex_t; |
Line 36... | Line 35... | ||
36 | 35 | ||
37 | #define __GTHREAD_ONCE_INIT 0 |
36 | #define __GTHREAD_ONCE_INIT 0 |
- | 37 | #define __GTHREAD_MUTEX_INIT 0 |
|
38 | #define __GTHREAD_MUTEX_INIT 0 |
38 | #define __GTHREAD_MUTEX_INIT_FUNCTION(mx) |
Line 39... | Line 39... | ||
39 | #define __GTHREAD_RECURSIVE_MUTEX_INIT 0 |
39 | #define __GTHREAD_RECURSIVE_MUTEX_INIT 0 |
Line 40... | Line 40... | ||
40 | 40 | ||
Line 283... | Line 283... | ||
283 | __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) |
283 | __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) |
284 | { |
284 | { |
285 | return __gthread_mutex_unlock (__mutex); |
285 | return __gthread_mutex_unlock (__mutex); |
286 | } |
286 | } |
Line -... | Line 287... | ||
- | 287 | ||
- | 288 | static inline int |
|
- | 289 | __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) |
|
- | 290 | { |
|
- | 291 | return __gthread_mutex_destroy (__mutex); |
|
- | 292 | } |
|
287 | 293 | ||
Line 288... | Line 294... | ||
288 | #endif /* _LIBOBJC */ |
294 | #endif /* _LIBOBJC */ |
Line 289... | Line 295... | ||
289 | 295 |