version 1.1, 2001/04/20 07:59:30 |
version 1.4, 2003/06/24 05:11:40 |
|
|
#endif /* SOLARIS_THREADS || SOLARIS_PTHREADS */ |
#endif /* SOLARIS_THREADS || SOLARIS_PTHREADS */ |
|
|
|
|
#if !defined(GC_USE_LD_WRAP) && \ |
#if !defined(GC_USE_LD_WRAP) && defined(GC_PTHREADS) && !defined(GC_SOLARIS_PTHREADS) |
(defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) \ |
|
|| defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)) |
|
/* We treat these similarly. */ |
/* We treat these similarly. */ |
# include <pthread.h> |
# include <pthread.h> |
# include <signal.h> |
# include <signal.h> |
|
|
int GC_pthread_create(pthread_t *new_thread, |
int GC_pthread_create(pthread_t *new_thread, |
const pthread_attr_t *attr, |
const pthread_attr_t *attr, |
void *(*start_routine)(void *), void *arg); |
void *(*start_routine)(void *), void *arg); |
|
#ifndef GC_DARWIN_THREADS |
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); |
|
#endif |
int GC_pthread_join(pthread_t thread, void **retval); |
int GC_pthread_join(pthread_t thread, void **retval); |
int GC_pthread_detach(pthread_t thread); |
int GC_pthread_detach(pthread_t thread); |
|
|
# define pthread_create GC_pthread_create |
# define pthread_create GC_pthread_create |
|
#ifndef GC_DARWIN_THREADS |
# define pthread_sigmask GC_pthread_sigmask |
# define pthread_sigmask GC_pthread_sigmask |
|
#endif |
# define pthread_join GC_pthread_join |
# define pthread_join GC_pthread_join |
# define pthread_detach GC_pthread_detach |
# define pthread_detach GC_pthread_detach |
|
#ifndef GC_DARWIN_THREADS |
# define dlopen GC_dlopen |
# define dlopen GC_dlopen |
|
#endif |
|
|
#endif /* GC_xxxxx_THREADS */ |
#endif /* GC_xxxxx_THREADS */ |
|
|