52 |
int GC_pthread_create(pthread_t *new_thread, |
int GC_pthread_create(pthread_t *new_thread, |
53 |
const pthread_attr_t *attr, |
const pthread_attr_t *attr, |
54 |
void *(*start_routine)(void *), void *arg); |
void *(*start_routine)(void *), void *arg); |
55 |
|
#ifndef GC_DARWIN_THREADS |
56 |
int GC_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset); |
int GC_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset); |
57 |
|
#endif |
58 |
int GC_pthread_join(pthread_t thread, void **retval); |
int GC_pthread_join(pthread_t thread, void **retval); |
59 |
int GC_pthread_detach(pthread_t thread); |
int GC_pthread_detach(pthread_t thread); |
60 |
|
|
61 |
# define pthread_create GC_pthread_create |
# define pthread_create GC_pthread_create |
62 |
|
#ifndef GC_DARWIN_THREADS |
63 |
# define pthread_sigmask GC_pthread_sigmask |
# define pthread_sigmask GC_pthread_sigmask |
64 |
|
#endif |
65 |
# define pthread_join GC_pthread_join |
# define pthread_join GC_pthread_join |
66 |
# define pthread_detach GC_pthread_detach |
# define pthread_detach GC_pthread_detach |
67 |
|
#ifndef GC_DARWIN_THREADS |
68 |
# define dlopen GC_dlopen |
# define dlopen GC_dlopen |
69 |
|
#endif |
70 |
|
|
71 |
#endif /* GC_xxxxx_THREADS */ |
#endif /* GC_xxxxx_THREADS */ |
72 |
|
|