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. */ |
1 | /* Threads compatibility routines for libgcc2. */ |
2 | /* Compile this one with gcc. */ |
2 | /* Compile this one with gcc. */ |
3 | /* Copyright (C) 1997, 1998, 2004, 2008, 2009 Free Software Foundation, Inc. |
3 | /* Copyright (C) 1997-2013 Free Software Foundation, Inc. |
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | This file is part of GCC. |
5 | This file is part of GCC. |
6 | 6 | ||
Line 49... | Line 49... | ||
49 | to initialize __gthread_once_t |
49 | to initialize __gthread_once_t |
50 | __GTHREAD_MUTEX_INIT |
50 | __GTHREAD_MUTEX_INIT |
51 | to initialize __gthread_mutex_t to get a fast |
51 | to initialize __gthread_mutex_t to get a fast |
52 | non-recursive mutex. |
52 | non-recursive mutex. |
53 | __GTHREAD_MUTEX_INIT_FUNCTION |
53 | __GTHREAD_MUTEX_INIT_FUNCTION |
54 | some systems can't initialize a mutex without a |
54 | to initialize __gthread_mutex_t to get a fast |
55 | function call. On such systems, define this to a |
55 | non-recursive mutex. |
56 | function which looks like this: |
56 | Define this to a function which looks like this: |
57 | void __GTHREAD_MUTEX_INIT_FUNCTION (__gthread_mutex_t *) |
57 | void __GTHREAD_MUTEX_INIT_FUNCTION (__gthread_mutex_t *) |
- | 58 | Some systems can't initialize a mutex without a |
|
58 | Don't define __GTHREAD_MUTEX_INIT in this case |
59 | function call. Don't define __GTHREAD_MUTEX_INIT in this case. |
59 | __GTHREAD_RECURSIVE_MUTEX_INIT |
60 | __GTHREAD_RECURSIVE_MUTEX_INIT |
60 | __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION |
61 | __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION |
61 | as above, but for a recursive mutex. |
62 | as above, but for a recursive mutex. |
Line 62... | Line 63... | ||
62 | 63 | ||
Line 69... | Line 70... | ||
69 | 70 | ||
70 | void *__gthread_getspecific (__gthread_key_t key) |
71 | void *__gthread_getspecific (__gthread_key_t key) |
Line 71... | Line 72... | ||
71 | int __gthread_setspecific (__gthread_key_t key, const void *ptr) |
72 | int __gthread_setspecific (__gthread_key_t key, const void *ptr) |
- | 73 | ||
Line 72... | Line 74... | ||
72 | 74 | int __gthread_mutex_destroy (__gthread_mutex_t *mutex); |
|
73 | int __gthread_mutex_destroy (__gthread_mutex_t *mutex); |
75 | int __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *mutex); |
74 | 76 |